Commit Graph

2505 Commits

Author SHA1 Message Date
Iain Collins
0495057458 Fix bug in VerificationRequest schema 2020-06-01 17:48:06 +01:00
Iain Collins
8a2ee7cbce HOTFIX CSS on signin page in Chome 2020-06-01 13:33:52 +01:00
Iain Collins
a465e2cda8 Improve styling on built-in pages
Improved font usage and button apperance.
2020-06-01 13:24:11 +01:00
Iain Collins
81c22f81ca Bump beta version number 2020-06-01 12:24:45 +01:00
Jibin George
4e4457f3ce Typo fix 2020-06-01 12:23:14 +01:00
Iain Collins
e993bc4f2a Bump beta version number 2020-06-01 04:03:44 +01:00
Iain Collins
c4fe49b0af Update Apple and Email provider docs 2020-06-01 04:03:44 +01:00
Iain Collins
5f211c8d0a Update advanced and basic options docs 2020-06-01 04:03:44 +01:00
Iain Collins
3e41381a52 Update next auth client documentation 2020-06-01 04:03:44 +01:00
Iain Collins
93488846e2 Refactor check-email page as verify-request
This allows the API surface to be more consistent
2020-06-01 04:03:44 +01:00
Iain Collins
9609d44638 Tell ESLint to ignore docs theme files 2020-06-01 04:03:44 +01:00
Iain Collins
59403ec607 Refactor Apple provider to genereate secret dynamically
See #176
2020-06-01 02:20:29 +01:00
Iain Collins
5f0f403b50 Refactor emailVerification to verificationRequest
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.
2020-06-01 01:54:13 +01:00
Iain Collins
fdae191116 Fix linting and minor bug in client 2020-06-01 01:54:13 +01:00
Iain Collins
15424d2d03 Fix bug with callbackUrls not being passed to custom pages 2020-06-01 01:54:13 +01:00
Iain Collins
9d2d7133a1 Bump beta version number 2020-06-01 01:06:44 +01:00
Iain Collins
f50013899a Preserve callback URL on custom signin and signout pages 2020-06-01 01:06:44 +01:00
Iain Collins
beb2d08260 Add signin and signout methods to client
* 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.
2020-06-01 01:06:44 +01:00
Iain Collins
b39d491df3 Rename tests dir to test (more conventional) 2020-06-01 01:06:44 +01:00
Iain Collins
7560d4ba80 Add new methods to client 2020-06-01 01:06:44 +01:00
Iain Collins
e90244b167 Adding to documentation
* Added REST API docs to sidebar
* Added documentation for the Apple Provider (WIP)
* Added clarity to documentation of options
* Added links to footer
2020-05-31 16:16:28 +01:00
Jibin George
a72aef7a86 clientSecret is required for Auth0
Seems like `clientSecret` is mandatory for Auth0 Provider.
2020-05-31 16:14:47 +01:00
Iain Collins
39e97c3b96 Restructure and extend documentation
Includes some minor tweaks to options to match documentation (non breaking changes).
2020-05-31 05:15:39 +01:00
Jibin George
e7d7a7ccab update 2020-05-30 19:41:25 +01:00
Jibin George
8b173efe96 Fix Provider component import path 2020-05-30 19:41:25 +01:00
Gerald Nolan
f53a7f3b85 Fixed Lint Issues 2020-05-27 14:30:15 +01:00
Gerald Nolan
62f5d7ebe1 Refactor -> Remove oauth-apple 2020-05-27 14:30:15 +01:00
Gerald Nolan
fd6fceb884 Sign In with Apple 2020-05-27 14:30:15 +01:00
Lori Karikari
74a5f459f5 Some cleanup (#173)
* shortened some long urls

* some fixes in text
2020-05-26 22:22:05 +02:00
Nico Domino
7b38af81cf Update README - Fix Typos 2020-05-26 21:48:25 +02:00
Iain Collins
401df2c177 Update Getting Started guide 2020-05-26 19:44:13 +01:00
Iain Collins
ffd9691cd0 Update docs for database and secret options 2020-05-26 19:44:13 +01:00
Iain Collins
e7ae32f618 Update www/docs/configuration.md 2020-05-26 19:39:28 +01:00
ndo@ndo1
97fadb0d9f fix: cleanup code example 2020-05-26 19:39:28 +01:00
ndo@ndo1
86f072bf4b add: docs for custom signin page 2020-05-26 19:39:28 +01:00
Iain Collins
981984b562 Improve database URI handling
* Fix bug in parser (.query -> search)
* Comments to explain what is going on
* Fallback to TypeORM parser
2020-05-26 17:48:04 +01:00
Iain Collins
1e9053d879 Add support for passing URL to 'database' option
* 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.
2020-05-26 13:19:47 +01:00
Iain Collins
cb1ce73c92 Update title of documentation homepage 2020-05-26 13:19:47 +01:00
Iain Collins
93054578c9 Update README.md 2020-05-26 02:08:03 +01:00
Iain Collins
d112800b98 Add custom pages
Now supports 'pages' option, which can be any URL.

If specified, these replace the built in pages.

Example usage:

pages: {
  signin: 'https://example.com/signin',
  signout: 'https://example.com/signout',
  checkEmail: 'https://example.com/check-email',
  error: 'https://example.com/error'
}
2020-05-26 01:02:02 +01:00
Iain Collins
c8bf342d8b Fix sqlite support 2020-05-25 21:43:50 +01:00
Iain Collins
63ceb1a260 Don't lookup session if session token empty 2020-05-25 21:24:45 +01:00
Iain Collins
ca519b69ce Fix schema and queries for mongodb 2020-05-25 21:24:45 +01:00
Iain Collins
2f16d8448d Fix issues with database; make it easier to test
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.
2020-05-25 18:15:33 +01:00
Iain Collins
74b334f7ad Fix default exports in entrypoints
Resolves #157
2020-05-25 12:11:35 +01:00
Lachlan Campbell
d5a231f51b Fix typos: directory is called “pages” (#155) 2020-05-24 17:28:55 +02:00
ndo@ndo3
9b24e216fa fix: import statement typo 2020-05-23 17:31:19 +02:00
Lori Karikari
a944870eb2 changed options to params (#154) 2020-05-23 16:32:44 +02:00
Iain Collins
bc6fd4aa32 Bump version number to beta 43 2020-05-23 03:56:54 +01:00
Iain Collins
4a00d5aca5 Fix error when missing email in profile
* Fixes #145
* See also #131

This doesn't allow signing in without an email address, but it handles it gracefully.
2020-05-23 03:55:41 +01:00