Possibility to manually store credentials on web
Checklist
- [X] I have looked into the Readme, Examples, and FAQ and have not found a suitable solution or answer.
- [X] I have looked into the API documentation and have not found a suitable solution or answer.
- [X] I have searched the issues and have not found a suitable solution or answer.
- [X] I have searched the Auth0 Community forums and have not found a suitable solution or answer.
- [X] I agree to the terms within the Auth0 Code of Conduct.
Describe the problem you'd like to have solved
For mobile, it is possible to store credentials manually:
await _auth0.credentialsManager.storeCredentials(credentials);
For web there is no similar option. Is there a way we can do this using the auth0-spa-js SDK or perhaps using the auth0.js SDK?
Describe the ideal solution
A similar implementation for web
await _auth0Web.storeCredentials(credentials);
Alternatives and current workarounds
No response
Additional context
No response
Hi @egonm12, I'm afraid the auth0-spa-js SDK only supports creating a custom token store, and then passing it into the SDK factory function. It does not support manually storing and retrieving tokens at all.
Could you please expand on your use case and why you need to be able to store and retrieve the tokens manually?
Closing this as it is not currently supported in the underlying auth0-spa-js . Feel free to reopen if you think ,this is important and needs to be addressed