Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing nonce optional field in UserAttributes in Swift client library (and documentation) #456

Closed
NicolasAlmerge opened this issue Jul 11, 2024 · 0 comments · Fixed by #457
Labels
documentation Improvements or additions to documentation

Comments

@NicolasAlmerge
Copy link

Improve documentation

Link

https://supabase.com/docs/reference/javascript/auth-updateuser

Describe the problem

According to the JS docs, the updateUser in the Swift SDK should be able to contain a nonce parameter when Secure Password Change has been activated. In this case, we must first call reauthenticate to send a nonce to the user's email, which is then used as a parameter to updateUser along with the new password.

Describe the improvement

Add a nonce: String? field to the UserAttributes struct (and update the init).

@NicolasAlmerge NicolasAlmerge added the documentation Improvements or additions to documentation label Jul 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant