Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/plmercereau/nhost-custom-email-verification
https://github.com/plmercereau/nhost-custom-email-verification
Last synced: 12 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/plmercereau/nhost-custom-email-verification
- Owner: plmercereau
- Created: 2022-01-23T20:01:02.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2022-01-23T20:02:27.000Z (almost 3 years ago)
- Last Synced: 2024-10-23T09:39:27.710Z (16 days ago)
- Language: HTML
- Size: 16.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Sending custom verification emails with NHost
## Install
1. clone this repo
2. Install dependencies cd functions && yarn install`
3. Run the projet on debug mode `nhost dev -d`
4. Post an email+password on http://localhost:1337/v1/auth/signup/email-password
5. After the ticket is generated by Hasura-Auth, the `functions/send-email-verification.ts` script will be executed## How it works
A Hasura event triggers the function when a user is created or updated, and its ticket changed.
The function gets the user in the request header (email and ticket)