Hellō
and iron-session
Example application using
This example creates an authentication system that uses Hellō for user login and retrieving user claims. User data is then stored in a signed and encrypted session cookie with iron-session
.
It is based off the Single Page Hellō Demo App and the with-iron-session example.
Features of the example:
- Login and update the user's profile with Hellō.
- Login redirects and return URLs for both statically generated and server-side rendered pages.
- The logged in status is synchronized between browser windows/tabs using the
useUser
hook and theswr
. - Session data is signed and encrypted in a cookie.
Deploy your own
Use the Hellō developer console to create your own Hellō application. The client ID is configured via environment variables.
Development
- Clone the repo/deploy your own. (You'll have to fork the repo if you want to submit PRs)
yarn install
- You might have to update node with
nvm install --lts
andnvm use --lts
yarn dev