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 benil
if the status is notok
Declaration
Swift
public let authenticated: Bool?
-
List of roles associated to a session JWT
Note
This will benil
if the status is notok
Declaration
Swift
public let roles: [MDRole]?
-
List of permissions associated to a session JWT
Note
This will benil
if the status is notok
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 benil
if the status isok
Declaration
Swift
public let errors: [MDError]?