mirror of
https://github.com/AustinKelsay/plebdevs.git
synced 2025-06-21 15:05:04 +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
|
const amount = 25; // Set the subscription amount in satoshis
|
||||||
|
|
||||||
export default async function handler(req, res) {
|
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' });
|
return res.status(401).json({ error: 'Unauthorized' });
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user