-
Notifications
You must be signed in to change notification settings - Fork 0
Refactor use sendgrid for email transactions #26
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
Merged
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
15246d8
chore: update .env.example with sendgrid config
fulleni 9b776c1
build: remove ht_email_inmemory, add ht_email_sendgrid
fulleni 4a002a6
feat(config): add SendGrid config
fulleni f1d8c05
refactor(email): Replace in-memory email client with SendGrid
fulleni e9f7144
fix(auth): send email with template ID
fulleni 227108c
style: format
fulleni 6b8114e
chore: update linter ignore rules
fulleni 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 |
---|---|---|
|
@@ -16,11 +16,16 @@ | |
# For local development, this can be left unset as 'localhost' is allowed by default. | ||
# CORS_ALLOWED_ORIGIN="https://your-dashboard.com" | ||
|
||
# REQUIRED FOR PRODUCTION: The issuer URL for JWTs. | ||
# Defaults to 'http://localhost:8080' for local development if not set. | ||
# For production, this MUST be the public URL of your API. | ||
# JWT_ISSUER="https://api.your-domain.com" | ||
# REQUIRED: Your SendGrid API key for sending emails. | ||
# SENDGRID_API_KEY="your-sendgrid-api-key" | ||
|
||
# OPTIONAL: The expiry duration for JWTs in hours. | ||
# Defaults to 1 hour if not set. | ||
# JWT_EXPIRY_HOURS="24" | ||
# REQUIRED: The default email address to send emails from. | ||
# DEFAULT_SENDER_EMAIL="[email protected]" | ||
|
||
# REQUIRED: The SendGrid template ID for the OTP email. | ||
# OTP_TEMPLATE_ID="d-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" | ||
|
||
# OPTIONAL: The base URL for the SendGrid API. | ||
# Defaults to "https://api.sendgrid.com" if not set. | ||
# Use "https://api.eu.sendgrid.com" for EU-based accounts. | ||
# SENDGRID_API_URL="https://api.sendgrid.com" |
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
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
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.