MDAuthInfo

public struct MDAuthInfo : Decodable

Structure representing the result of a /auth/check request returned by the MangaDex API

  • The status of the result returned by the MangaDex API

    Declaration

    Swift

    public let status: MDResultStatus
  • Whether a JWT provides authentication

    Note

    This will be nil if the status is not ok

    Declaration

    Swift

    public let authenticated: Bool?
  • List of roles associated to a session JWT

    Note

    This will be nil if the status is not ok

    Declaration

    Swift

    public let roles: [MDRole]?
  • List of permissions associated to a session JWT

    Note

    This will be nil if the status is not ok

    Declaration

    Swift

    public let permissions: [MDPermission]?
  • The optional message in this result

    Declaration

    Swift

    public let message: String?
  • The errors contained in this response

    Note

    This will be nil if the status is ok

    Declaration

    Swift

    public let errors: [MDError]?