跳至内容
从 NextAuth.js v4 迁移?请阅读 我们的迁移指南.

providers/vipps

VippsProfile

查看

用户配置文件结构

扩展

属性

accounts

accounts: {
  account_name: string;
  account_number: number;
  bank_name: string;
  }[];

address

address: Address;

birthdate

birthdate: string;

delegatedConsents

delegatedConsents: {
  confirmConsentButtonText: string;
  consents: {
     accepted: boolean;
     id: string;
     required: boolean;
     textDisplayedToUser: string;
  }[];
  heading: string;
  language: string;
  links: {
     privacyStatementLinkText: string;
     privacyStatementLinkUrl: string;
     termsLinkText: string;
     termsLinkUrl: string;
  };
  termsDescription: string;
  timeOfConsent: string;
};
confirmConsentButtonText
confirmConsentButtonText: string;
consents
consents: {
  accepted: boolean;
  id: string;
  required: boolean;
  textDisplayedToUser: string;
  }[];
heading
heading: string;
language
language: string;
links: {
  privacyStatementLinkText: string;
  privacyStatementLinkUrl: string;
  termsLinkText: string;
  termsLinkUrl: string;
};
links.privacyStatementLinkText
privacyStatementLinkText: string;
links.privacyStatementLinkUrl
privacyStatementLinkUrl: string;
links.termsLinkText
termsLinkText: string;
links.termsLinkUrl
termsLinkUrl: string;
termsDescription
termsDescription: string;
timeOfConsent
timeOfConsent: string;

email

email: string;

email_verified

email_verified: boolean;

family_name

family_name: string;

given_name

given_name: string;

name

name: string;

nin

nin: string;

other_addresses

other_addresses: Address[];

phone_number

phone_number: string;

sid

sid: string;

sub

sub: string;

default()

default(options): OIDCConfig<VippsProfile>

参数

参数类型
optionsOIDCUserConfig<VippsProfile>

返回值

OIDCConfig<VippsProfile>

查看

Vipps 登录 API

示例

import Vipps from "@auth/core/providers/vipps"
...
providers: [
 Vipps({
   clientId: process.env.AUTH_VIPPS_ID,
   clientSecret: process.env.AUTH_VIPPS_SECRET,
 })
]
...

注意 如果您正在测试,请确保使用 apitest.vipps.no 覆盖 issuer 选项

Auth.js © Balázs Orbán 和团队 -2024