Parameters
public struct Parameters
Parameters used during login.
-
Forces the use of web authentication flow instead of LINE app-to-app authentication flow.
Declaration
Swift
public var onlyWebLogin: Bool
-
The style for showing the “Add bot as friend” prompt on the consent screen.
Declaration
Swift
public var botPromptStyle: BotPrompt?
-
Sets the preferred language used when logging in with the web authorization flow.
If not set, the web authentication flow shows the login page in the user’s device language, or falls back to English. Once set, the web page is displayed in the preferred language.
Note
This property does not affect the preferred language when LINE is used for authorization. LINE and the login screen are always displayed in the user’s device language.Declaration
Swift
public var preferredWebPageLanguage: WebPageLanguage?
-
Sets the nonce value for ID token verification. This value is used when requesting user authorization with
.openID
permission to prevent replay attacks to your backend server. If not set, LINE SDK will generate a random value as the token nonce. Whether set or not, LINE SDK verifies against the nonce value in received ID token locally.Declaration
Swift
public var IDTokenNonce: String?
-
Determines whether it’s possible to create another login process while the original one is still valid. If
true
, when a new login action is started, any existing one ends with aGeneralErrorReason.processDiscarded
error. Iffalse
, the new login action is ignored, and the existing one continues to wait for a result. When the deploy target is macCatalyst, the default value istrue
. In other cases, it’sfalse
. -
Creates a default
LoginManager.Parameters
value.Declaration
Swift
public init()