SimpleLogin Provider
Resources
Setup
Callback URL
https://example.com/api/auth/callback/simpleloginEnvironment Variables
AUTH_SIMPLELOGIN_ID
AUTH_SIMPLELOGIN_SECRETConfiguration
@/auth.ts
import NextAuth from "next-auth"
import SimpleLogin from "next-auth/providers/simplelogin"
export const { handlers, auth, signIn, signOut } = NextAuth({
providers: [SimpleLogin],
})Notes
Authorized Redirect URIs
The “Authorized redirect URIs” used must include your full domain and end in the callback path. By default, SimpleLogin whitelists all http[s]://localhost:* address to facilitate local development. For example;
- For production:
https://{YOUR_DOMAIN}/api/auth/callback/simplelogin - For development: By default localhost is whitelisted.
Authorized Redirect URIs must be HTTPS for security reason (except for localhost).