Hi!
I would like to implement a login with email/password on my SPA website.
I want a user to fill out the form directly on my website and submit it without redirections and popups.
As I understand I should you “Embedded login”. I checked the docs, it offers me 3 options:
- Use Lock
- Use Auth0.js
- Manullay call Authentication API
As I understand, the only option that fits my needs is the 3d.
i.e. I should call auth API manually (Resource Owner Password Grant).
The only problem is that I don’t understand how to keep a user logged in after the access token expires.
Is there a session involved here so I can request a new access token without asking for user credentials?