Hello. My questions is: how can I connect to web-app, which implements auth0, through JS code? As far as I understand, I need to provide credentials to auth0 api, and auth0 must return me JWT, which I’ll pass to that web-app
Hi @andrey121775,
Welcome to the Auth0 Community and thank you for your post.
If you are referring to setting up a Single-Page-Application to use Auth0, what you have mentioned above is correct. You need to provide your application the credentials for your application, that you can find in the Auth0 Dashboard.
An access token will be returned in a JWT format. When the authentication is successful, you can use the
auth0Client.handleRedirectCallback()
that exchanges the result for real tokens you can use.
You can find more information and step by step instructions directly in our Auth0 Dashboard or by following the documentation for integrating the Auth0 SPA SDK.
I hope this helped.
Best regards,
Remus
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.