Commit Graph

2126 Commits

Author SHA1 Message Date
Iain Collins
e9bdd5c355 Improve client event handling
Improves how well syncing client state is handled and how well caching is leveraged.

Reduces network load, cpu load and memory footprint.
2020-07-27 05:20:34 +01:00
Iain Collins
9728567296 Improve client state syncing
* clientMaxAge now passive
* clientPollInterval added (works like old clientMaxAge)
* poll intervals uses timer (more efficent)
* updates state on window focus/blur
2020-07-27 05:20:34 +01:00
Iain Collins
ef6579a7ee Refactor redirect handling (WIP)
Passing a redirect function like this is a bit horrible, but is less horrible than before.
2020-07-27 05:20:34 +01:00
Iain Collins
8e810aa765 Fix linting errors and bug in getCsrfToken 2020-07-27 05:20:34 +01:00
Iain Collins
37596edf2b Improve CSRF security for all routes
Includes breaking changes for v3 and updates to documentation.

If using the client, the only required change should be setting the NEXTAUTH_URL environment variable.
2020-07-27 05:20:34 +01:00
tmayr@tmayr.com
229a3e430e Add tutorial on how to use custom typeorm models 2020-07-27 05:20:34 +01:00
Nico Domino
1d80f595c5 Add provider Vercel-style marquee to docs
* add: marquee provider section
* fix: lint
* update: adjust node sizes
* fix: window undefined SSR
* fix: path to imgs

Co-authored-by: Iain Collins <me@iaincollins.com>
2020-07-27 05:20:34 +01:00
Iain Collins
189a2c8e0e Fix for reading private key in Apple provider 2020-07-27 05:20:34 +01:00
Iain Collins
97096fb811 Fix linter errors and add comments 2020-07-27 05:20:34 +01:00
Gerald Nolan
e8b75e40b1 feat: Added UserData to ProfileData after return from Apple to get user name on first sign in 2020-07-27 05:20:34 +01:00
Iain Collins
d41c38e002 Add support for hitting cancel if using token id
When using a provider that uses Token ID option (like Apple) a user hitting cancel with no longer cause the app to crash.

Users who do this will now be taken back to the sign in page.

This was already working for other providers that didn't use this option but wasn't supported for providers that did use it.
2020-07-27 05:20:34 +01:00
Fredrik Pettersen
966bc7b433 docs(prisma): Add note about model names and set email to optional 2020-07-27 05:20:34 +01:00
Fredrik Pettersen
e7b06d3362 fix(prisma): Make sure provider id is a string 2020-07-27 05:20:34 +01:00
Fredrik Pettersen
d5d8eb8d7c feat(adapter): Add opinionated prisma adapter 2020-07-27 05:20:34 +01:00
nyedidikeke
8ec07f0224 Add LinkedIn provider 2020-07-27 03:22:43 +01:00
dan-kwiat
558536db1e docs(options): remove duplicate arrow 2020-07-23 10:30:50 +01:00
Lori Karikari
0c2fe054d1 [Docs] fix small typo 2020-07-20 17:46:48 +02:00
dependabot[bot]
b5a69fd787 Bump lodash from 4.17.15 to 4.17.19 in /www
Bumps [lodash](https://github.com/lodash/lodash) from 4.17.15 to 4.17.19.
- [Release notes](https://github.com/lodash/lodash/releases)
- [Commits](https://github.com/lodash/lodash/compare/4.17.15...4.17.19)

Signed-off-by: dependabot[bot] <support@github.com>
2020-07-17 12:31:11 +01:00
dependabot[bot]
9b29ed347d Bump lodash from 4.17.15 to 4.17.19
Bumps [lodash](https://github.com/lodash/lodash) from 4.17.15 to 4.17.19.
- [Release notes](https://github.com/lodash/lodash/releases)
- [Commits](https://github.com/lodash/lodash/compare/4.17.15...4.17.19)

Signed-off-by: dependabot[bot] <support@github.com>
2020-07-17 12:06:12 +01:00
Jibin George
c5c4ff4d51 Fix typo 2020-07-15 13:30:01 +01:00
styxlab
008b1a9f8d fallback if user.name is null (#424)
Co-authored-by: cws <cws@home.fritz.box>
2020-07-12 18:52:58 +02:00
Iain Collins
4a6f153aa6 Update question.md 2020-07-10 16:14:10 +01:00
Iain Collins
9eccc78e3a Update feature_request.md 2020-07-10 16:13:12 +01:00
Iain Collins
09938cc368 Update bug_report.md 2020-07-10 16:12:59 +01:00
Jake Harding
5db05e1031 Use id_str for reading in Twitter user ID 2020-07-09 11:07:18 +01:00
Ryuichi Okumura
f6ba72b4fa Fix wrong syntax in Apple provider example
It fixes a syntax error in Apple provider example code.
2020-07-07 19:38:44 +01:00
Jonathan Dean
bf7e555cfa Fix typo: curly brace should be square bracket 2020-07-07 19:35:36 +01:00
William Duplenne
26abc70a99 Add Spotify provider
Add Spotify to the sidebar
2020-07-07 08:35:55 +01:00
tmayr@tmayr.com
d38cd54dee Fix using merged models var instead of user provided models in props
Merged models were being overwritten by user provided models which
might come incomplete
2020-07-06 20:51:36 +01:00
felipe muner
200690ad6c Update pages.md (#389) 2020-07-05 10:58:09 +02:00
Nico Domino
52b69a6d68 Add: testing with cypress docs (#357)
* add: testing with cypress docs

* update: add tutorials group
2020-07-04 21:47:00 +02:00
Theo Gravity
f319b2af05 Fix reading of req in getSession() 2020-07-04 01:27:03 +01:00
Iain Collins
b80a005733 Update callbacks.md 2020-07-01 17:16:15 +01:00
Arunoda Susiripala
34936aecc0 Pass maxAge to the 'jwt.getJwt' function
With that it can pass that to the `jwt.decode` method. This will be useful, if we are using a custom `maxAge` value.
2020-07-01 10:46:35 +01:00
Tom Astley
b021f26f03 Update client.md (#370)
Fixed small syntax error on line 219 in the signout example. Added a '('
2020-06-30 11:56:47 +02:00
Iain Collins
fcf7197120 Fix indentation in example (trivial) 2020-06-30 10:47:29 +01:00
Iain Collins
bec8d8dff1 Update callbacks.md 2020-06-30 09:30:01 +01:00
Iain Collins
781c63e966 Update pages.md 2020-06-30 08:52:58 +01:00
Iain Collins
2da1883726 Fix typo in email.md 2020-06-30 08:52:18 +01:00
Thibaut Patel
83ffac7cd2 Fix missing closing tag in docs 2020-06-28 21:09:11 +01:00
Iain Collins
6198903cdf Update copy on homepage 2020-06-28 14:49:30 +01:00
Iain Collins
bd98f8188c Update introduction.md 2020-06-28 14:40:29 +01:00
Iain Collins
73ea402b1c Compress images
* Forgot to do this when I added them.
* May add a script to compress them on commit.
* Adding new binary blobs bloats repo over time, we can always purge old assets if it's a problem.
* The social card is slightly too bright to compensate for PNG gamma interpretation not being consistant between browsers (too bright in some looks better than too dark in others). Maybe it should be a JPEG.
2020-06-28 14:03:23 +01:00
Iain Collins
4284684a3b Improve apperance of documentation on mobile 2020-06-28 10:51:51 +01:00
Iain Collins
b5d522410a Update CSS
Additional changes following testing on mobile.
2020-06-28 10:51:51 +01:00
Iain Collins
284cb8e2a7 Improve website CSS on mobile and dark mode 2020-06-28 10:51:51 +01:00
Iain Collins
079aab2315 Improve mobile documentation secondary menu
Still not great, but somewhat better.
2020-06-28 10:51:51 +01:00
Iain Collins
645ee382cf Improve documentation structure / sidebar 2020-06-28 10:51:51 +01:00
Iain Collins
e947a772ce Website cosmetic refresh
Addressing quality issues with assets and layout
2020-06-28 10:51:51 +01:00
Iain Collins
5d63adf7df Update errors.md 2020-06-26 17:22:18 +01:00