Skip to content

Commit 905d298

Browse files
committed
feat(authorize): accept 'otp' as an authn_method
1 parent 5bcc24a commit 905d298

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

src/typings.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export interface PrivateConfigsOptions {
2121
sdkVersion?: string; // semver
2222
}
2323

24-
export const supportedAuthnMethod = ['passwordless', 'sso', 'credentials'] as const;
24+
export const supportedAuthnMethod = ['passwordless', 'sso', 'credentials', 'otp'] as const;
2525
export type AuthnMethod = typeof supportedAuthnMethod[number];
2626

2727
export interface ConfigsOptions extends PrivateConfigsOptions {
@@ -241,7 +241,11 @@ export interface AffiliateTrackingParams {
241241
*/
242242
affiliateCode?: string;
243243
}
244-
export interface AuthorizeOptions extends OAuthSharedParams, ConfigsOptions, AuthorizeConfigsOptions, AffiliateTrackingParams {
244+
export interface AuthorizeOptions
245+
extends OAuthSharedParams,
246+
ConfigsOptions,
247+
AuthorizeConfigsOptions,
248+
AffiliateTrackingParams {
245249
/**
246250
* Access scopes you're requesting. This can be a single scope, or an array of scopes.
247251
*

0 commit comments

Comments
 (0)