AuthCode
public struct AuthCode : Codable, Sendable
Struct representing an authorization code.
- Property code: code used for authorization.
- Property codeVerifier: code verifier associated with the authorization code.
-
Declaration
Swift
public let code: String -
Declaration
Swift
public let codeVerifier: String? -
Initializes a new instance of
AuthCode.Declaration
Swift
public init(code: String = "", codeVerifier: String? = nil)Parameters
codeThe authorization code as a string. Default is an empty string.
codeVerifierAn optional code verifier associated with the authorization code. Default is
nil.
View on GitHub