-
-
Notifications
You must be signed in to change notification settings - Fork 429
user verification #979
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
Merged
moshfeu
merged 6 commits into
migration/migrate-nest-server-to-netlify-functions
from
verification-user
Apr 16, 2025
Merged
user verification #979
Changes from 5 commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
29a3c96
client implementation
moshfeu 6820897
consider email_verified prop through all the app - server and client
moshfeu 33f486a
do not required email verification for current endpoint
moshfeu aff582c
complete the verification cycle
moshfeu e601ff9
verification button hide close button
moshfeu cde2f65
Update netlify/functions-src/functions/email/templates/email-verifica…
moshfeu File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
export enum ErrorCodes { | ||
EmailNotVerified = 1, | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# Authentication System | ||
|
||
We're using Auth0 to handle authentication in our application. This document outlines the authentication flow and how to set up your environment for development. | ||
|
||
## Registration | ||
|
||
1. User clicks on the "Sign Up" button. | ||
2. User is redirected to the Auth0 login page. | ||
3. User enters their email and password. | ||
4. Auth0 sends a verification email, which we leverage for the welcome email. | ||
5. User clicks on the verification link in the email. | ||
6. User is redirected to the application with a verification token. For more information about the redirection see the [docs](https://auth0.com/docs/customize/email/email-templates#configure-template-fields) - open the "Redirect the URL" section. | ||
> **ℹ️ Info** | ||
> Remember. The application.callback_domain variable will contain the origin of the first URL listed in the application's Allowed Callback URL list |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
55 changes: 55 additions & 0 deletions
55
netlify/functions-src/functions/email/templates/email-verification.html
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
<div style="text-align: center; font-size: 18px"> | ||
<table width="100%"> | ||
<tbody> | ||
<tr> | ||
<td align="center"> | ||
<img | ||
style="width: 39%; max-width: 234px" | ||
src="http://cdn.mcauto-images-production.sendgrid.net/83a8af126d5ca8ff/70fa68eb-a954-47c6-9798-306089b6a4e3/600x370.jpg" | ||
alt="Illustration" | ||
/> | ||
</td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
<h2 style="font-size: 26px; font-weight: normal">Hey <%= name %></h2> | ||
<h1 | ||
style=" | ||
font-size: 32px; | ||
line-height: 42px; | ||
font-weight: normal; | ||
color: #69d5b1; | ||
" | ||
> | ||
You're almost there! | ||
</h1> | ||
<p>Please click the link below to verify your email</p> | ||
<p style="margin-top: 10px"> | ||
<a | ||
href="<%= link %>" | ||
style=" | ||
background-color: #00bc89; | ||
border: 1px solid #333333; | ||
border-color: #00bc89; | ||
border-radius: 6px; | ||
border-width: 1px; | ||
color: #ffffff; | ||
display: inline-block; | ||
font-size: 16px; | ||
font-weight: normal; | ||
letter-spacing: 0px; | ||
line-height: 16px; | ||
padding: 12px 18px 12px 18px; | ||
text-align: center; | ||
text-decoration: none; | ||
" | ||
target="_blank" | ||
>Verify</a | ||
> | ||
</p> | ||
<p style="margin-top: 10px"> | ||
<small> | ||
(Or copy and paste this url | ||
<a herf="<%= link %>" target="_blank"><%= link %></a> into your browser) | ||
</p> | ||
</div> |
5 changes: 5 additions & 0 deletions
5
netlify/functions-src/functions/email/templates/nodemon-emails.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"watch": ["."], | ||
"ext": "html,js", | ||
"exec": "node netlify/functions-src/functions/email/templates/show.js" | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.