Open dmaglio opened 2 years ago
Same behavior, same issue. Do you have any tips/solutions for this?
FYI
"@nebular/auth": "7.0.0",
"@nebular/date-fns": "7.0.0",
"@nebular/eva-icons": "7.0.0",
"@nebular/theme": "7.0.0",
you need configure the token key
https://akveo.github.io/nebular/docs/auth/getting-user-token#use-token
.... NbAuthModule.forRoot({ strategies: [ NbPasswordAuthStrategy.setup({ name: 'email',
token: {
class: NbAuthJWTToken,
key: 'token', // this parameter tells where to look for the token
}
}),
],
forms: {},
}),
...
Of course @dev-alexandre , I have already done this since this behavior is random like @dmaglio
I am having this same issue:
"@nebular/auth": "^9.0.0",
"@nebular/eva-icons": "^9.0.0",
"@nebular/security": "^9.0.0",
"@nebular/theme": "^9.0.0",
I had the same issue, I then realized that my laptop did not have the date and time set automatically and that the date was set to the next day. Fixing the laptop date solved that issue for me... maybe check if that is your problem.
Issue type
I'm submitting a ... (check one with "x")
Issue description
After logging in regularly, I can no longer log in because the response message is
token is empty or invalid
. it does not happen on all computers or browsers but randomly on different PCs and different operating systems. Yet the authentication response holds the correct token.This is the angular code I use for authentication
instead the json result of request is
json of error: