UNPKG

@azure/msal-browser

Version:
30 lines (26 loc) • 1.26 kB
/* * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. */ import { CustomAuthResultV2 } from "../../../../core/auth_flow/v2/CustomAuthResultV2.js"; import type { FailedStateV2 } from "../../../../core/auth_flow/v2/state/FailedStateV2.js"; import type { PasswordRequiredStateV2 } from "../../../../core/auth_flow/v2/state/PasswordRequiredStateV2.js"; import type { AuthMethodSelectionRequiredStateV2 } from "../../../../core/auth_flow/v2/state/AuthMethodSelectionRequiredStateV2.js"; import type { CodeRequiredStateV2 } from "../../../../core/auth_flow/v2/state/CodeRequiredStateV2.js"; /** * States returned when native auth V2 sign-in starts. * @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications. */ export type SignInStartResultStateV2 = | PasswordRequiredStateV2 | CodeRequiredStateV2 | AuthMethodSelectionRequiredStateV2 | FailedStateV2; /** * Result of starting native auth V2 sign-in. * @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications. */ export type SignInStartResultV2 = CustomAuthResultV2< SignInStartResultStateV2, undefined >;