1 Answer
- Newest
- Most votes
- Most comments
2
Hi Navin,
You should just call Auth.currentSession() method, as Amplify will handle that, see this: https://docs.amplify.aws/lib/auth/manageusers/q/platform/js/#retrieve-current-session
Hope it helps and appreciated an accepted answer if so, so that benefits community when searching for similar issues, cheers!
Relevant content
- asked 2 years ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 5 months ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 2 months ago
in gen 1 v 6 we cannot access refresh token from session. So how can we programmatically log out an user from sso ?