LineLoginRequest

class LineLoginRequest(val scopes: Set<LineScope> = DefaultScopes, val nonce: String? = null, val forceWebLogin: Boolean = false, val botPrompt: LineBotPrompt? = null, val promptBotId: String? = null)

Options for a single LineLogin.login call.

The defaults are what most apps want: sign in with profile + openid, through the LINE app when it is installed and the browser when it is not.

Constructors

Link copied to clipboard
constructor(scopes: Set<LineScope> = DefaultScopes, nonce: String? = null, forceWebLogin: Boolean = false, botPrompt: LineBotPrompt? = null, promptBotId: String? = null)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Ask the user to add your LINE Official Account as a friend during login. Requires the channel to be linked to a bot in the console; null shows no prompt.

Link copied to clipboard

Skip app-to-app login and always use the web flow, even when the LINE app is installed. Mostly useful for testing the browser path.

Link copied to clipboard

An OpenID Connect nonce, echoed back in the ID token so a backend can prove the token was minted for this login attempt. Generate it server-side and verify it there; a nonce a client both creates and checks proves nothing. Null lets the SDK supply its own.

Link copied to clipboard

Which bot to prompt for, when the channel is linked to more than one.

Link copied to clipboard

Permissions to request. Must not be empty. What the user actually granted is not reported as a list — read it off the result instead: LineLoginResult.Success.profile is non-null when profile was granted, LineLoginResult.Success.idToken when openid was, and LineIdToken.email when email was.

Functions

Link copied to clipboard
open override fun toString(): String