* New email template
* New callback error handling
I anticipate adding more changes and a new beta before we release 2.2.0 but wanted to test these changes.
* 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
Currently if a user hits a cancel button after selecting the option to sign in with an OAuth provider an error is displayed.
This error is only triggered in production.
This update refactors error handling so that in both dev and prod modes, the user is directed back to the sign in page.
Not all OAuth providers have a cancel button on their sign in page (e.g. Twitter does, Google doesn't).
The oAuthCallback has been slightly refactored to make debugging easier. It is still pretty horrible, but i don't want to do major refactoring of it until we have tests we trust in place.
The action to publish to NPM fails as it can't run the DB test yet so removing that.
Changing the test to run the linter instead so it does something (e.g. catch the worst syntax errors).
* Removing the old 'slug' param as it was only used in early beta releases
* No default site name makes it harder to debug when you forget to set it
* Setting it to http://localhost:3000 makes it more obvious when you see it in errors
Each message trigger needs a unique payload but we don't have to pass the session data.
It would not be terrible to pass the session data, but persisting it in localStorage is likely cause confusion and makes it easier for third party scripts to scrape.