-
Notifications
You must be signed in to change notification settings - Fork 0
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
Add reauthenticate method. #10
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me.
src/auth.toit
Outdated
metadata. | ||
This maps to the `auth.users.app_metadata` column. Only a service role can modify. | ||
The `app_metadata` should be a JSON object that includes app-specific info, such as | ||
identity providers, roles, and other access control information. | ||
*/ | ||
update_current_user data/Map -> none: | ||
if client_.session_ == null: throw "No session available." |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe change this check too?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done.
src/auth.toit
Outdated
- "ban_duration": Determines how long a user is banned for. The format for the ban | ||
duration follows a strict sequence of decimal numbers with a unit suffix. Valid time | ||
units are "ns", "us" (or "µs"), "ms", "s", "m", "h". Setting the ban duration to | ||
'none' lifts the ban on the user. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'none' lifts the ban on the user. | |
"none" lifts the ban on the user. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done.
No description provided.