Method GenerateSignInCodeAsync
GenerateSignInCodeAsync(string)
Asynchronously generates a sign-in code that can be used to sign in. This method should be called before attempting to sign in using the sign-in code.
Declaration
Task<SignInCodeInfo> GenerateSignInCodeAsync(string identifier = null)
Parameters
| Type | Name | Description |
|---|---|---|
| string | identifier | An optional identifier. If provided, it may influence the generated sign-in code or be used for additional checks. |
Returns
| Type | Description |
|---|---|
| Task<SignInCodeInfo> | A Task representing the asynchronous generation operation. The task result contains the generated SignInCodeInfo details:
|
Exceptions
| Type | Condition |
|---|---|
| AuthenticationException | Thrown when the current authentication state is invalid for this operation. |