opened
j0lv3r4
username_0
This is my attempt at https://github.com/zeit/next.js/issues/153

Following @rauchg instructions:

- it uses an authentication helper across pages which returns a token if there's one
- it has session synchronization across tabs
- I deployed a passwordless backend on `now.sh` (https://with-cookie-api.now.sh, [src](https://github.com/username_0/next.js-with-cookies-api))

Also, from reviewing other PRs, I made sure to:

- use [isomorphic-fetch](https://www.npmjs.com/package/isomorphic-fetch).
- use [next-cookies](https://www.npmjs.com/package/next-cookies).

Here's a little demo:

![GIF](https://i.imgur.com/067Ph56.gif)
Example with cookie auth
issue
created
timneutkens
username_1
This PR looks pretty good @username_0! I'm going to invite you to the example repo I made but didn't finish so that you can compare notes.
comment
created
timneutkens
username_1
https://github.com/username_1/next.js-auth-example/invitations
comment
created
timneutkens
username_1
Could you also send me a DM on Spectrum: https://spectrum.chat/users/username_1
comment
created
j0lv3r4
username_0
thanks, @username_1! DM sent.
comment
created
malixsys
username_2
I think see some of my stuff, glad this made it in!! 😁
comment
created
timneutkens
username_1
🙌
comment