### What?
Updates Deploy button URLs for all listed examples here:
https://github.com/vercel/next.js/tree/canary/examples
### Why?
The Deploy URLs are currently broken and result in a failed clone
attempt on Vercel.
### How?
The URLs have been changed from https://vercel.com/new/git/external?… to
-> https://vercel.com/new/clone?…
(Last updated
[here](8eaabe2fb0
)
in 2021)
2.1 KiB
Executable file
Authsignal Passwordless Login Example
This example shows how to integrate Authsignal with Next.js in order to implement passwordless login using email magic links and server-side redirects.
The login session is managed using cookies. Session data is encrypted using @hapi/iron.
A live version of this example can be found here.
Deploy your own
Deploy the example using Vercel:
How to use
Execute create-next-app
with npm, Yarn, or pnpm to bootstrap the example:
npx create-next-app --example authsignal/passwordless-login authsignal-passwordless-app
# or
yarn create next-app --example authsignal/passwordless-login authsignal-passwordless-app
# or
pnpm create next-app --example authsignal/passwordless-login authsignal-passwordless-app
Deploy it to the cloud with Vercel (Documentation).
Configuration
Log in to the Authsignal Portal and enable email magic links for your tenant.
Copy the .env.local.example file to .env.local:
cp .env.local.example .env.local
Set AUTHSIGNAL_SECRET
as your Authsignal secret key.
The SESSION_TOKEN_SECRET
is used to encrypt the session cookie. Set it to a random string of 32 characters.
Notes
To learn more about Authsignal take a look at the API Documentation.