Table of Contents

Class SignInOptions

Namespace
VpnHood.AppLib.Abstractions.Accounts
Assembly
VpnHood.AppLib.Abstractions.dll

Represents a sign-in: its method, with the credentials or the second step's code.

public record SignInOptions : IEquatable<SignInOptions>
Inheritance
SignInOptions
Implements
Inherited Members

Properties

Password

Gets the password, for the password sign-in's first step, or null.

public string? Password { get; init; }

Property Value

string

ProviderId

The sign-in method — one of ProviderIds (see AuthProviders).

public required string ProviderId { get; init; }

Property Value

string

TwoFactorCode

The second-step answer when the previous SignIn returned a state other than SignedIn: the authenticator code or the account's backup code. Sent alone (no UserName/Password) with the same ProviderId — the provider holds the pending challenge.

public string? TwoFactorCode { get; init; }

Property Value

string

UserName

Gets the email address, for the password sign-in's first step, or null.

public string? UserName { get; init; }

Property Value

string