Skip to content
The Auth.js project is now part of Better Auth.

providers/ssojet

Built-in sign in with SSOJet integration.

SSOJetProfile

The returned user profile from SSOJet when using the profile callback.

Extends

Indexable

[key: string]: any

Properties

email

email: string;

The user’s email address.

email_verified

email_verified: boolean;

Indicates whether the user has verified their email address.

family_name

family_name: string;

The user’s family name.

given_name

given_name: string;

The user’s given name.

locale

locale: string;

The user’s locale.

name

name: string;

The user’s full name.

picture

picture: string;

URL pointing to the user’s profile picture.

preferred_username

preferred_username: string;

The user’s preferred username.

sub

sub: string;

The user’s unique identifier.

updated_at

updated_at: number;

Timestamp indicating when the user profile was last updated.

zoneinfo

zoneinfo: string;

The user’s timezone.


default()

function default(config): OIDCConfig<SSOJetProfile>

Setup

Callback URL

https://example.com/api/auth/callback/ssojet

Configuration

import { Auth } from "@auth/core"
import SSOJet from "@auth/core/providers/ssojet"
 
const request = new Request(origin)
const response = await Auth(request, {
  providers: [
    SSOJet({
      clientId: AUTH_SSOJET_CLIENT_ID,
      clientSecret: AUTH_SSOJET_CLIENT_SECRET,
      issuer: AUTH_SSOJET_ISSUER,
    }),
  ],
})

Resources

Notes

The SSOJet provider comes with a default configuration. To override the defaults for your use case, check out customizing a built-in OAuth provider.

Help

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.

Parameters

ParameterType
configOIDCUserConfig<SSOJetProfile>

Returns

OIDCConfig<SSOJetProfile>

Auth.js © Better Auth Inc. - 2025