providers/simplelogin
SimpleLoginProfile
Properties
avatar_url
avatar_url: undefined | string;
client
client: string;
email: string;
email_verified
email_verified: boolean;
id
id: number;
name
name: string;
sub
sub: string;
default()
default<P>(options): OAuthConfig<P>
Add SimpleLogin login to your page.
Setup
Callback URL
https://example.com/api/auth/callback/simplelogin
Configuration
import Auth from "@auth/core"
import SimpleLogin from "@auth/core/providers/simplelogin"
const request = new Request(origin)
const response = await Auth(request, {
providers: [
SimpleLogin({
clientId: SIMPLELOGIN_CLIENT_ID,
clientSecret: SIMPLELOGIN_CLIENT_SECRET,
}),
],
})
Resources
Notes
By default, Auth.js assumes that the SimpleLogin provider is based on the Open ID Connect specification.
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
).
The SimpleLogin provider comes with a default configuration. To override the defaults for your use case, check out customizing a built-in OAuth provider.
Disclaimer If you think you found a bug in the default configuration, you can open an issue.
Auth.js strictly adheres to the specification and it cannot take responsibility for any deviation from the spec by the provider. You can open an issue, but if the problem is non-compliance with the spec, we might not pursue a resolution. You can ask for more help in Discussions.
Type parameters
Type parameter |
---|
P extends SimpleLoginProfile |
Parameters
Parameter | Type |
---|---|
options | OAuthUserConfig <P > |
Returns
OAuthConfig
<P
>