Add s s 8854yh49944j33..3404440400
This commit is contained in:
parent
1aae1ada38
commit
338c26c869
@ -34,6 +34,7 @@ export default function LocaleLayout({children} : { children : ReactNode }) {
|
|||||||
// if logged in this will fire
|
// if logged in this will fire
|
||||||
function LoggedInCallback()
|
function LoggedInCallback()
|
||||||
{
|
{
|
||||||
|
console.log('SERVER ::: logged in')
|
||||||
return router.push(authRedirectPage)
|
return router.push(authRedirectPage)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -140,6 +140,7 @@ export async function GET(req: Request)
|
|||||||
// we throw error if expired
|
// we throw error if expired
|
||||||
if(userDoc.token.expiresAt < (Date.now() / 1000))
|
if(userDoc.token.expiresAt < (Date.now() / 1000))
|
||||||
{
|
{
|
||||||
|
console.log('SERVER ::: token expired')
|
||||||
throw {
|
throw {
|
||||||
specialError : 'expiredToken'
|
specialError : 'expiredToken'
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user