user management: user exist by serviceFinds a user by oAuth service token.
The unique service token ({service}-{token}) used in our oAuth flows. Returns the user if one was found matching this oauth service token. Returns true
if a user matched the given service token. user management: user existsFinds a user by ID.
The ID of the user (eg: username, email, code) Returns the user if one was found matching the ID. user management: change password from tokenChange the password for a user with the password forgot token
The guid of the user who the token belongs to The token input from the user New password choosen by the user True if the password is successfully changed. If false, the error pin would be filled If success is false, this explains why user management: request password forgot tokenRequest a token to send to a user, so the user can change / reset his password with that token
The guid of the user who requested the password The number of minutes the token should be valid
Default:
5 minutes
The token which can be send to the user (eg: via mail or SMS) user management: create userThe ID of the user (eg: username, email, code) Password or passcode for the user Optional: Extra data for the user account The user will be removed after this date Returns false in case of an error Return the error in case of an error references: useUse the user which was previously defined by a define reference
get: get fieldsGets the given fields from the user data-pin and returns this per data-pin.
current user: get ipReturns the ip of the user currently browsing the page. It uses the connection so the user does not need to be logged in in order for the IP to be returned.
user management: sign in as userSign in as another user, token expires after 24 hours or on signout
If set to true the frontend will reload on successful signin. This will only work if the action is executed by a user in the frontend.
Default:
false
The date/time this login session should expire. Hide the session from the users active sessions list Check if the user successfully signed in! When success is false, The error shows here Auth object containing access token and maxAge user management: update userThe documents GUID (unique ID) to update. Password or passcode for the user (Should be left empty to keep current password) Optional: Extra data for the user account The user will be removed after this date user management: sign inThe ID of the user (eg: username, email, code). Password for the given user. The date/time this login session should expire. Check if the user successfully signed in! When success is false, The error shows here Auth object containing access token and maxAge The 2FA methods that are enabled and configured for this user The 2FA method the user has selected to be the users default references: defineStore this user as reference, which can later be used by "use reference"