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

providers/paybin

Built-in sign in with Paybin integration.

PaybinProfile

The returned user profile from Paybin when using the profile callback. Reference

Extends

Indexable

[key: string]: any

Properties

email

email: string;

The user’s email address.

email_verified?

optional email_verified: boolean;

Indicates whether the user has verified their email address.

family_name?

optional family_name: string;

The user’s family name.

given_name?

optional given_name: string;

The user’s given name.

name?

optional name: string;

The user’s full name.

picture?

optional picture: string;

URL pointing to the user’s profile picture.

preferred_username?

optional preferred_username: string;

The user’s username.

sub

sub: string;

The user’s unique identifier.


default()

function default<P>(options): OIDCConfig<P>

Setup

Callback URL

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

Configuration

import { Auth } from "@auth/core"
import Paybin from "@auth/core/providers/paybin"
 
const request = new Request(origin)
const response = await Auth(request, {
  providers: [
    Paybin({
      clientId: PAYBIN_CLIENT_ID,
      clientSecret: PAYBIN_CLIENT_SECRET,
    }),
  ],
})

Resources

Notes

By default, Auth.js assumes that the Paybin provider is based on the Open ID Connect specification.

The Paybin 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.

Type Parameters

Type Parameter
P extends PaybinProfile

Parameters

ParameterType
optionsOIDCUserConfig<P>

Returns

OIDCConfig<P>

Auth.js © Better Auth Inc. - 2025