AuthTypeState

public struct AuthTypeState : Decodable, Encodable

Output format description of user authorization status

  • Specific description by type of authorization

    Declaration

    Swift

    public let specific: Specific
  • Description of the active session.

    Note

    nil - if no active session.

    Declaration

    Swift

    public let activeSession: ActiveSession?
  • Whether it is possible to produce the type of authorization

    Declaration

    Swift

    public let canBeIssued: Bool
  • A sign that the type of authorization available to the user

    Declaration

    Swift

    public let enabled: Bool
  • A sign that for authentication type requires creation of a session

    Declaration

    Swift

    public let isSessionRequired: Bool
  • Undocumented

    Declaration

    Swift

    public init(specific: Specific,
                activeSession: ActiveSession?,
                canBeIssued: Bool,
                enabled: Bool,
                isSessionRequired: Bool)

Decodable

  • Declaration

    Swift

    public init(from decoder: Decoder) throws

Encodable

  • Declaration

    Swift

    public func encode(to encoder: Encoder) throws

Support structures

  • Description of the active session

    See more

    Declaration

    Swift

    public struct ActiveSession : Decodable, Encodable
  • Specific description by type of authorization

    See more

    Declaration

    Swift

    public enum Specific : Decodable, Encodable