LoginResult

public struct LoginResult
extension LoginResult: Encodable

Represents a successful login.

  • The access token obtained by the login process.

    Declaration

    Swift

    public let accessToken: AccessToken
  • The permissions bound to the accessToken object by the authorization process.

    Declaration

    Swift

    public let permissions: Set<LoginPermission>
  • Contains the user profile including the user ID, display name, and so on. The value exists only when the .profile permission is set in the authorization request.

    Declaration

    Swift

    public let userProfile: UserProfile?
  • Indicates that the friendship status between the user and the bot changed during the login. This value is non-nil only if the .botPromptNormal or .botPromptAggressive are specified as part of the LoginManagerOption object when the user logs in. For more information, see Linking a bot with your LINE Login channel at https://developers.line.biz/en/docs/line-login/web/link-a-bot/.

    Declaration

    Swift

    public let friendshipStatusChanged: Bool?
  • The nonce value when requesting ID Token during login process. Use this value as a parameter when you verify the ID Token against the LINE server. This value is nil if .openID permission is not requested.

    Declaration

    Swift

    public let IDTokenNonce: String?