
yc954 (yc954) asked a question.
Sign in flow
I am trying to implement a login flow for a web app without using Okta's default login APIs. I have obtained a sessionToken using the Primary Authentication API. How can I use the sessionToken to get an access token?

Hello @yc954 (yc954) , thank you for contacting Okta Community.
It looks like your question is more appropriate for our dedicated Okta Developer Forum. I advise reaching out via devforum.okta.com as they will have more insight into this topic.
In the mean time, take a look at these similar posts from the Okta Developer Forum:
Fetching a session token from the AccessToken or IdToken
How do I get the access token from session token (java)
How to get idToken or accessToken via the API?
While we'll do our best to answer your questions here, this medium is more inclined towards Okta's core products and features (non-developer work).
You could also open a Support ticket (Customer Support Account ID number required) so one of our engineers can analyze it and provide in-depth troubleshooting.
Please note that opening a support ticket is a feature available only to paid accounts. If you do not have a paid account, but are interested in upgrading, you can contact our Sales team.
Regards.
--
Help others in the community by liking or hitting Select as Best if this response helped you.
@yc954 (yc954) - token.getWithoutPrompt method in this link may help you/ what you are looking for .
https://github.com/okta/okta-auth-js#token
HTH
-Bala