Success

class Success(val accessToken: LineAccessToken, val profile: LineProfile?, val idToken: LineIdToken?, val friendshipStatusChanged: Boolean, val nonce: String?) : LineLoginResult

The user signed in.

Which permissions were actually granted is not reported as a list, because iOS cannot report it: the LINE SDK's Objective-C layer exposes login permissions as opaque objects with no readable value and no equality, so any such list would be honest on one platform and invented on the other. Read it off the data instead — profile is non-null when profile was granted, idToken when openid was, and LineIdToken.email when email was.

Constructors

Link copied to clipboard
constructor(accessToken: LineAccessToken, profile: LineProfile?, idToken: LineIdToken?, friendshipStatusChanged: Boolean, nonce: String?)

Properties

Link copied to clipboard

Always present.

Link copied to clipboard

True when the user added your LINE Official Account as a friend during this login. Only meaningful with LineLoginRequest.botPrompt.

Link copied to clipboard

Present when LineScope.OpenId was granted. The only part of this result a backend can verify.

Link copied to clipboard

The nonce carried by this login, whether it came from LineLoginRequest.nonce or from the SDK.

Link copied to clipboard

Present when LineScope.Profile was granted.

Functions

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