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
code
The authorization code as a string. Default is an empty string.
codeVerifier
An optional code verifier associated with the authorization code. Default is
nil
.