How to get id_token and access_token by signInWithCredentials method?

Hi community,

I looked at the doc here and see signInWithCredentials method, and it says The goal of this authentication flow is to set an Okta session cookie on the user's browser or retrieve an id_token or access_token, which is exactly what I want. I browse through the whole doc and still don’t quite know how to use signInWithCredentials method to retrieve id_token and access_token. Can anyone help me with this? A coding example would be perfect!

Thanks!

Hello,
Assuming that your Okta Org is a Classic Org you can follow this document.

1 Like