AcquireTokenInteractiveParameterBuilder.WithLoginHint(String) Method

Definition

Sets the loginHint, in order to avoid select account dialogs in the case the user is signed-in with several identities. This method is mutually exclusive with WithAccount(IAccount). If both are used, an exception will be thrown

public Microsoft.Identity.Client.AcquireTokenInteractiveParameterBuilder WithLoginHint (string loginHint);
member this.WithLoginHint : string -> Microsoft.Identity.Client.AcquireTokenInteractiveParameterBuilder
Public Function WithLoginHint (loginHint As String) As AcquireTokenInteractiveParameterBuilder

Parameters

loginHint
String

Identifier of the user. Generally in UserPrincipalName (UPN) format, e.g. john.doe@contoso.com

Returns

The builder to chain the .With methods

Applies to