Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/plmercereau/nhost-custom-email-verification


https://github.com/plmercereau/nhost-custom-email-verification

Last synced: 12 days ago
JSON representation

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)