mirror of
https://github.com/aljazceru/landscape-template.git
synced 2026-01-31 12:14:30 +01:00
remove logs
This commit is contained in:
@@ -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")
|
||||
}
|
||||
|
||||
|
||||
@@ -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")
|
||||
|
||||
@@ -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' })
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user