Changes to verification model mean it can be used for other kinds of verification requests when credentials flow is implemented.
e.g. can support verification via SMS or an app.
Also includes minor update to account model.
* Using method preserves current URL on signin / signout
* Reloads browser window once complete to force session update
The force reload behaviour may change to something more graceful in future, but is good for now as ensure page state is correct.
* Added REST API docs to sidebar
* Added documentation for the Apple Provider (WIP)
* Added clarity to documentation of options
* Added links to footer
* Database configuration now only needs a single line!
* You can still specify options using query string parameters.
* You can still specify an object, so this is not a breaking change.
These changes fix compatibility issues with common SQL databases including MySQL, MariaDB and Postgres.
* Fixes#147 - datetime now ANSI SQL timestamp
* Fixes#160 - AccessToken and RefreshToken type change from varchar to text
* Adds Docker Compose files to make it easier to test database integration.
TODO:
* Update documentation with configuration examples and latest compatibility info
* Create DB URI parser (currently only object config works)
* Database table/collection name prefix (will default to `next-auth_`)
* MongoDB support
MongoDB has some issues which mean it will require additional work and refactoring to support (while preserving SQL DB support, which is important).
It's going to take some thinking about to get right; MongoDB support might have to be dropped from 2.0 (and follow in a subsequent release) but I'm going to review options and consider the impact before making a call.