Remove bearer

This commit is contained in:
austinkelsay 2024-11-08 14:33:51 -06:00
parent cac0d8c3b1
commit 38f15bb861
No known key found for this signature in database
GPG Key ID: 44CB4EC6D9F2FA02

View File

@ -6,7 +6,7 @@ const lnAddress = process.env.LIGHTNING_ADDRESS;
const amount = 25; // Set the subscription amount in satoshis
export default async function handler(req, res) {
if (req.headers.authorization !== `Bearer ${process.env.CRON_SECRET}`) {
if (req.headers.authorization !== process.env.CRON_SECRET) {
return res.status(401).json({ error: 'Unauthorized' });
}