I am currently working on an application with a custom login page based on this Okta example:
Where the app is an OIDC app that uses the auth code grant type. Logging in is no problem as the app handles that already. The issue/blocker I have is I don’t know how to go about checking for the Okta session and sending an auth code to the backend server when a session already exists for the user.
I know the widget contains methods to check for an existing session, using .authClient.session.exists() and authClient.session.get() to retrieve the session details, however I don’t know how to go about the auth code flow as this all runs on the front end, the backend server is unaware of the session.
Any insights/pointers will be greatly appreciated.