Skip to content
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

Improve appearance of sign in email #333

Merged
merged 1 commit into from
Jun 25, 2020
Merged

Conversation

iaincollins
Copy link
Member

@iaincollins iaincollins commented Jun 25, 2020

Improve apperance of sign in email

  • Prevents links from being turned into hyperlinks by email clients
  • Improve UI with a primary action button and better font sizing and spacing in the template
  • Adds email address to body to clear indicate who they will be signing in as

While not exactly a bug in NextAuth.js it does resolve #331

Notes

I've tried to avoid using colour schemes in NextAuth.js but in this case it improves the UX to pick a large primary colour for the action button, especially on dark mode devices. It uses a fairly innocuous and generic shade of blue, similar to that used by Google, Apple, Twitter and Facebook on call to action.

Emails are fully customisable as before. There are no breaking changes in this update.

Example

Screenshot 2020-06-25 at 17 02 15

@vercel
Copy link

vercel bot commented Jun 25, 2020

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/iaincollins/next-auth-docs/6p7jm2m61
✅ Preview: https://next-auth-docs-git-feature-improve-signin-email.iaincollins.vercel.app

* Prevents links from being turned into hyperlinks by email clients
* Improve UI with a primary action button and better font sizing and spacing in the template
* Adds email address to body to clear indicate who they will be signing in as

While not exactly a bug in NextAuth.js it does resolve #331
@vercel vercel bot temporarily deployed to Preview June 25, 2020 16:43 Inactive
@iaincollins iaincollins merged commit 2f64034 into main Jun 25, 2020
@iaincollins iaincollins deleted the feature/improve-signin-email branch June 25, 2020 16:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Default email sign in link has website in http vs. https
1 participant