auth0-flutter icon indicating copy to clipboard operation
auth0-flutter copied to clipboard

Possibility to manually store credentials on web

Open egonm12 opened this issue 1 year ago • 1 comments

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

egonm12 avatar Apr 17 '24 09:04 egonm12

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?

Widcket avatar Jan 21 '25 18:01 Widcket

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

pmathew92 avatar Jun 19 '25 09:06 pmathew92