providers/authgear
AuthgearProfile
Extends
Record
<string
,any
>
Indexable
[key
: string
]: any
Properties
email: string;
name
name: string;
picture
picture: string;
sub
sub: string;
default()
function default<P>(options): OAuthConfig<P>
Add Authgear login to your page.
Setup
Callback URL
https://example.com/api/auth/callback/authgear
Configuration
import { Auth } from "@auth/core"
import Authgear from "@auth/core/providers/authgear"
const request = new Request(origin)
const response = await Auth(request, {
providers: [
Authgear({
clientId: YOUR_AUTHGEAR_CLIENT_ID,
clientSecret: YOUR_AUTHGEAR_CLIENT_SECRET,
issuer: YOUR_AUTHGEAR_ISSUER_OR_PROJECT_ENDPOINT,
client: {
token_endpoint_auth_method: "client_secret_post",
}
}),
],
})
Resources
💡
The Authgear 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 AuthgearProfile |
Parameters
Parameter | Type |
---|---|
options | OAuthUserConfig <P > |
Returns
OAuthConfig
<P
>