Commit Graph

2529 Commits

Author SHA1 Message Date
Iain Collins
d130251b41 Add file for Google Search Console verification
This is so we can control how the site appears in Google.
2020-06-14 15:13:08 +01:00
Iain Collins
4dd8d3160b Merge branch 'main' of github.com:iaincollins/next-auth into main 2020-06-14 14:49:26 +01:00
Iain Collins
667fe8cf50 Update documentation
* Combined options and advanced options into one page
* Improved structure of sidebar
* Other miscellaneous edits
2020-06-14 14:49:20 +01:00
Iain Collins
554c32c6f1 Refactoring naming strategy
Not a breaking change, just a refactor!

* Removes dependency on external library
* Resolves problem of messy logic in models and transform by putting it all in a naming strategy
* No change to table / collection schemas!
2020-06-14 14:15:28 +01:00
Iain Collins
bdc0e8e16f Update documentation 2020-06-14 04:55:56 +01:00
Iain Collins
3b0527add8 Fix typo in docs 2020-06-14 04:39:44 +01:00
Iain Collins
2b494357e5 Update documentation 2020-06-14 04:39:01 +01:00
Iain Collins
7a0624b8db HOTFIX for sqlite schema transform 2020-06-14 04:13:26 +01:00
Iain Collins
bb8a2c94cc Update postgres.md 2020-06-14 04:01:24 +01:00
Iain Collins
f3532ebef2 Update models to use better table/collection names
* Use plural table/collection names
* Use snake_case on SQL
* Use camelCase on Document DB
* Updated docs
2020-06-14 03:50:22 +01:00
Iain Collins
c5fad1b933 Update user model documentation 2020-06-14 03:50:22 +01:00
Iain Collins
5e9f392ba8 Bump beta version to 72 2020-06-14 03:50:22 +01:00
Iain Collins
f1ed5c1e97 Update documentation
This is a larger update to the documentation than I had planned in this PR but I think makes sense to do it together as so much of it is related.
2020-06-14 03:50:22 +01:00
Iain Collins
5946710fe8 Refactor getProfileFromToken to idToken
This is a minor change to an undocumented feature, but makes sense to rename it while I'm documenting it.
2020-06-14 03:50:22 +01:00
Iain Collins
5cf0056e69 Add script to extract schema from databases 2020-06-14 03:50:22 +01:00
Iain Collins
ac12d6a6e2 Add database drivers as devDependencies for testing 2020-06-14 03:50:22 +01:00
Iain Collins
cc0c15e37c Refactor models and schemas 2020-06-14 03:50:22 +01:00
Iain Collins
9a630dcb01 Rename master branch to main 2020-06-13 19:55:19 +01:00
Iain Collins
d30b112d71 Add getProfileFromToken option 2020-06-12 02:08:43 +01:00
Iain Collins
5fded4256d Add issue templates
Trying to create some structure to get external contributors to think about feature requests and/or provide more information when raising issues.

This is not intended for core committers - I'm just trying to wrangle the input we get to reduce signal to noise, especially as I'm also starting to get emails asking for support now.
2020-06-12 01:06:55 +01:00
Iain Collins
d2fdfa7528 Fix typo in adapter docs 2020-06-12 00:23:25 +01:00
Iain Collins
55c3acab9a Fix for unique emails in MongoDB
The previous approach didn't work at enforcing uniqueness, but have double checked that this approach does.
2020-06-11 13:10:59 +01:00
Iain Collins
dc903f8059 Refactor debug messages in adaptor
Format is now consistant with error logs
2020-06-11 13:10:59 +01:00
Iain Collins
156c8e1e97 Make email addresses optional when signin in 2020-06-11 13:10:59 +01:00
terrierscript
78ba85e74d Fix typo 2020-06-10 00:48:20 +01:00
Iain Collins
6d41089d48 Fix typo in introduction.md 2020-06-09 16:41:13 +01:00
Iain Collins
64b23d484d Fix typo in errors.md 2020-06-09 16:39:05 +01:00
StefanWerW
5f65e8c30d Update example.md 2020-06-09 15:50:39 +01:00
StefanWerW
49d560fa24 Update google.md 2020-06-09 10:04:33 +01:00
Iain Collins
36c469660e Update JWT docs 2020-06-09 09:44:35 +01:00
Iain Collins
416785941b Added JWT helper method 2020-06-09 09:44:35 +01:00
Iain Collins
799bd2dfaa Updated error docs and logger 2020-06-09 09:44:35 +01:00
Nico Domino
c0ccbc9274 WIP: Console Errors with URLs (#222)
* test: override console.error

* update: clean up test URL + test docs

* refactor console.error override into own iife

* update: import override into client + typeorm

* chore: organise errors.md page

* fix: lowercase errorCode required for hash

* update: refactor error fn into own fn instead of (ab)using console.error itself

* add: bold docs msg in console

* update: err function rename + prepare docs URL for prod
2020-06-08 17:57:03 +02:00
Nicola Molinari
0918cdbfa0 fix: missing file export jwt.js in npm release 2020-06-08 14:45:01 +01:00
Iain Collins
077f60e7c4 Allow session.get callback to use data from JWT 2020-06-08 12:25:01 +01:00
Iain Collins
96900e77f6 Fix typos in README 2020-06-08 10:56:17 +01:00
Iain Collins
f43343bd2c Reduce line length of comment in example 2020-06-08 10:45:54 +01:00
Iain Collins
8e69940ae6 Fix typos in documentation 2020-06-08 10:42:10 +01:00
Iain Collins
0d825bbc39 Refactor JWT, Sessions and add allowSignin() method (#223)
## Database

- [x] Databases are now optional - useful with OAuth + JWT if you only need access control
- [x] Updated documentation and added example code for custom database adapters

## JWT

- [x] JWT option is now an object that groups JWT related options together (was a boolean)
- [X] Refactored JWT lib and add AES encryption / decryption as well as signing / verification
- [x] Allows JWT encode/decode methods to be overridden as options
- [x] Contents of JWT can easily customised - without needing to use custom encode/decode
- [x] Exported JWT methods so they can be called from custom API routes
- [x] Updated documentation for new JWT options

## Sessions

- [x] All session options (eg. `maxAge`, `updateAge`) now grouped under single `session` option
- [x] Using JWT for sessions is now enabled from session object (`session.jwt: true`)
- [x] All options involving time now use seconds (instead of milliseconds) for consistency
- [x] Added option to customise the Session object that is returned from `/api/auth/session`
- [x] Update documentation for new Session options

## Other improvements

- [x] Added `allowSignin()` option to control what users / accounts are allowed to sign in
- [x] Refactored `callbackUrlHandler()` - this option  is now called `allowCallbackUrl()` 
- [x] Minor improvements to NextAuth.js client API methods
- [x] Minor to NextAuth.js API routes
- [x] Minor improvements to built-in error pages
- [x] Refactored database models
   All tables now include a `created` column for each row which contains the `datetime` of when the row (e.g. User / Account / Session) was created.
  Additionally, sessions now use the name 'expiry' for the expiry `datetime` value for consistency with other models.
2020-06-08 04:01:21 +01:00
Gerald Nolan
35123f005a Fixed Google Link 2020-06-07 11:51:05 +02:00
Lori Karikari
b25730fbd5 Simplified Auth0 config (#219)
* simplified auth0 conf and made domain stuff more consistent across providers that need one

* removed console.log()

* removed too much
2020-06-06 18:27:23 +02:00
Lori Karikari
585be4ce4a Seperate provider docs (#214)
* added page for Okta

* updated oauth section of provider docs

* added docs for each provider

* email provider
2020-06-06 15:20:01 +02:00
Gerald Nolan
3b5d4b6925 Added Link to ServiceID
Updated App Configuration link to Apple developer portal
2020-06-06 08:15:51 +02:00
dependabot[bot]
39471e9bae Bump websocket-extensions from 0.1.3 to 0.1.4 in /www
Bumps [websocket-extensions](https://github.com/faye/websocket-extensions-node) from 0.1.3 to 0.1.4.
- [Release notes](https://github.com/faye/websocket-extensions-node/releases)
- [Changelog](https://github.com/faye/websocket-extensions-node/blob/master/CHANGELOG.md)
- [Commits](https://github.com/faye/websocket-extensions-node/compare/0.1.3...0.1.4)

Signed-off-by: dependabot[bot] <support@github.com>
2020-06-06 03:23:50 +01:00
Iain Collins
50039e5a6b Bump beta version to 62
This includes the OKTA provider and an improved README.
2020-06-06 03:02:10 +01:00
Iain Collins
cb31f9e554 Fix typos in in README.md URLs
🤦
2020-06-06 02:08:49 +01:00
Iain Collins
f21fb0f46d Update introduction.md 2020-06-06 02:05:04 +01:00
Iain Collins
13c6801c45 Update README.md 2020-06-06 02:04:40 +01:00
Iain Collins
1a1b0ffdc6 Add sharing image for Facebook and Twitter 2020-06-06 01:56:44 +01:00
ndo@ndo3
a638e2b27a chore: cleanup 2020-06-06 01:52:36 +01:00