https://github.com/polterguy/auth
Hyperlambda registration module for Magic
https://github.com/polterguy/auth
Last synced: 4 months ago
JSON representation
Hyperlambda registration module for Magic
- Host: GitHub
- URL: https://github.com/polterguy/auth
- Owner: polterguy
- Created: 2023-12-29T06:13:23.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2025-05-19T04:37:26.000Z (about 1 year ago)
- Last Synced: 2025-05-19T05:34:02.510Z (about 1 year ago)
- Homepage: https://ainiro.io
- Size: 22.5 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Auth module for Magic, giving you workflow actions for easily creating registration
and user management logic.
## Workflow actions
* authenticate - Authenticates the specified user and returns a JWT token
* authorize - Ensures user is authorized to access some resource
* extras-get - Retrieves extra information for users, such as email and name
* extras-remove - Removes extra information associated with users
* extras-upsert - Inserts or updates extra information associated with users
* roles-add - Adds the specified role to some user
* roles-get - Returns all roles associated with user
* roles-remove - Removes the specified role from user
* username-available - Checks if a username is available to use for registering new users
* username-get - Returns the username for the currently authenticated user
* users-change-password - Changes the password for a specified user
* users-create - Creates a new user, allowing you to among other things create registration logic
* users-delete - Deletes a user entirely from the system
* users-get - Returns information associated with some user
By combining the above actions it should be fairly easy to create registration logic in Magic.
## Workflows
In addition the module contains a reusable workflow encapsulating the imports actions from above, correctly
changed together. This workflow is as follows.
* register - Registers a new user with the specified username, password, email, and name - And optionally associated the user with a default role