LoginPermission

public struct LoginPermission : Hashable

Represents the possible login permissions to be set in the authorization request.

  • The raw value of the permission. A LoginPermission object is composed of a plain raw string.

    Declaration

    Swift

    public let rawValue: String
  • Initializes a LoginPermission value with a plain string. Use this method to set permissions that are not defined in the framework.

    Declaration

    Swift

    public init(rawValue: String)
  • The permission to get an ID token in the login response.

    Declaration

    Swift

    public static let openID: LoginPermission
  • The permission to get the user’s profile including the user ID, display name, and the profile image URL in the login response.

    Declaration

    Swift

    public static let profile: LoginPermission
  • The permission to select friends or groups and share content with them.

    Declaration

    Swift

    public static let oneTimeShare: LoginPermission
  • The permission to check Open Chat use term agreement status. This is necessary if you want to create or join an open chat room.

    Declaration

    Swift

    public static let openChatTermStatus: LoginPermission
  • The permission to create or join to an Open Chat room.

    Declaration

    Swift

    public static let openChatRoomCreateAndJoin: LoginPermission
  • The permission to check subscription information of an Open Chat room.

    Declaration

    Swift

    public static let openChatInfo: LoginPermission
  • The permission to get the user’s email from an ID Token in the login response. This permission requires the .openID permission to be granted at the same time. The channel of your app must have the email permission that can be configured in the LINE Developers console.

    Declaration

    Swift

    public static let email: LoginPermission