mirror of
https://github.com/aljazceru/landscape-template.git
synced 2026-02-05 22:54:24 +01:00
add logs
This commit is contained in:
@@ -15,6 +15,7 @@ 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")
|
||||
|
||||
@@ -11,7 +11,7 @@ import useCopyToClipboard from "src/utils/hooks/useCopyToClipboard";
|
||||
|
||||
|
||||
const fetchLnurlAuth = async () => {
|
||||
const res = await fetch(CONSTS.apiEndpoint + '/get-login-url', {
|
||||
const res = await fetch(CONSTS.apiEndpoint + '/get-login-url?action=link', {
|
||||
credentials: 'include'
|
||||
})
|
||||
const data = await res.json()
|
||||
|
||||
Reference in New Issue
Block a user