mirror of
https://github.com/AustinKelsay/plebdevs.git
synced 2025-04-19 19:01:19 +00:00
Remove bearer
This commit is contained in:
parent
cac0d8c3b1
commit
38f15bb861
@ -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' });
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user