providers/vipps
VippsProfile
查看
扩展
Record
<string
,any
>
属性
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
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: 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>
参数
参数 | 类型 |
---|---|
options | OIDCUserConfig <VippsProfile > |
返回值
查看
示例
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 选项