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 benilif the status is notokDeclaration
Swift
public let authenticated: Bool? -
List of roles associated to a session JWT
Note
This will benilif the status is notokDeclaration
Swift
public let roles: [MDRole]? -
List of permissions associated to a session JWT
Note
This will benilif the status is notokDeclaration
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 benilif the status isokDeclaration
Swift
public let errors: [MDError]?
View on GitHub
MDAuthInfo Structure Reference