Skip to main content
Class
actor CrossmintAuthManager

Initializers

init(apiKey:)

convenience init(apiKey apiKeyString: String) throws

init(authService:secureStorage:)

init(authService: any AuthService, secureStorage: any SecureStorage)

Instance Properties

authenticationStatus

var authenticationStatus: AuthenticationStatus { get async throws(AuthError) }

email

var email: String? { get }

jwt

Inherited from AuthManager.jwt.
var jwt: String? { get }

Instance Methods

logout()

func logout() async throws(AuthManagerError) -> OTPAuthenticationStatus

oneTimeSecretAuthentication(oneTimeSecret:)

func oneTimeSecretAuthentication(oneTimeSecret: String) async throws(AuthManagerError) -> OTPAuthenticationStatus

otpAuthentication(email:code:forceRefresh:)

func otpAuthentication(email: String, code: String? = nil, forceRefresh: Bool = false) async throws(AuthManagerError) -> OTPAuthenticationStatus

reset()

func reset() async -> OTPAuthenticationStatus

setJWT(_:)

Inherited from AuthManager.setJWT(_:).
func setJWT(_ jwt: String) async