Updating @okta/okta-auth-js to the latest version
anmoljain10 opened this issue · 2 comments
Describe the feature request?
Hi, i checked the package JSON file of @okta/okta-react-native package. We are using @okta/okta-auth-js version as 5.4.0 but the stable version is 6.x.x. Are we updating the package JSON for this as 5.4.0 will be considered as an old version for @okta/okta-auth-js from 2022-10-31. Here's the link: https://github.com/okta/okta-auth-js#release-status.
- Since we are using @okta/okta-react-native library, will this affect anything if we don't upgrade it?
- Or is the custom sign-in function available via native modules?
New or Affected Resource(s)
If upgrading is necessary and the package is not updated, it's going to affect our login flow as we're using okta in our react native application
Provide a documentation link
https://github.com/okta/okta-auth-js
Additional Information?
No response
You should be able to pull in the latest version without breaking anything.
Thanks @JayNewstrom for the reply, I had a doubt in the flow i am using for login. Here is what we're doing:
- Checking using isAuthenticated method if the user is logged in. If logged in, route to home screen directly.
- If isAuthenticated return false, there can be two scenarios, one is either user's session is expired or they're logged out/haven't logged in.
My questions are:
- Is there a method using which we can check if user is logged in but session is expired so we have to refresh the tokens in that case and login user again.
- Is using refreshAllTokens method enough or we need to use authenticate method also.
- Is the isAuthenticated method based on expiration time of session token or access token?
- What is the use of authenticate method as it requires session token but we don't get the session token in any method.
Can we confirm these? Thanks for the help!