mirror of
https://github.com/aljazceru/landscape-template.git
synced 2026-02-16 03:54:26 +01:00
fix: throw error when auth not available yet
This commit is contained in:
@@ -20,7 +20,7 @@ const isLoggedInHandler = async (req, res) => {
|
||||
});
|
||||
const hash = payload.hash;
|
||||
const token = await getAuthTokenByHash(hash);
|
||||
if (token)
|
||||
if (!token)
|
||||
throw new Error("Not logged in yet")
|
||||
|
||||
lnurlService.removeHash(hash).catch();
|
||||
|
||||
Reference in New Issue
Block a user