remove logs

This commit is contained in:
MTG2000
2022-08-08 21:25:14 +03:00
parent 69e3c84d01
commit bc0980488e
3 changed files with 0 additions and 5 deletions

View File

@@ -45,7 +45,6 @@ const getLoginUrl = async (req, res) => {
.status(200)
.json({ ...data, session_token });
} catch (error) {
console.log(error);
res.status(500).send("Unexpected error happened, please try again")
}

View File

@@ -15,7 +15,6 @@ const isLoggedInHandler = async (req, res) => {
algorithms: ['HS256'],
});
const hash = payload.hash;
console.log(hash);
const authToken = await lnurlAuthService.getAuthTokenByHash(hash);
if (!authToken)
throw new Error("Not logged in yet")

View File

@@ -22,8 +22,6 @@ const loginHandler = async (req, res) => {
try {
await LnurlAuthService.verifySig(sig, k1, key)
} catch (error) {
console.log(sig, k1, key);
console.log(error);
return res.status(400).json({ status: 'ERROR', reason: 'Invalid Signature' })
}
@@ -108,7 +106,6 @@ const loginHandler = async (req, res) => {
return res.status(200).json({ status: "OK" })
} catch (error) {
console.log(error);
return res.status(400).json({ status: 'ERROR', reason: 'Unexpected error happened, please try again' })
}
}