Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions auth0_flutter/darwin/Classes/WebAuth/WebAuthExtensions.swift
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@ extension FlutterError {
convenience init(from webAuthError: WebAuthError) {
var code: String
switch webAuthError {
case .noBundleIdentifier: code = "NO_BUNDLE_IDENTIFIER"
case .invalidInvitationURL: code = "INVALID_INVITATION_URL"
case .userCancelled: code = "USER_CANCELLED"
case .noAuthorizationCode: code = "NO_AUTHORIZATION_CODE"
case .pkceNotAllowed: code = "PKCE_NOT_ALLOWED"
case .idTokenValidationFailed: code = "ID_TOKEN_VALIDATION_FAILED"
case .transactionActiveAlready: code = "TRANSACTION_ACTIVE_ALREADY"
case .other: code = "OTHER"
case WebAuthError.noBundleIdentifier: code = "NO_BUNDLE_IDENTIFIER"
case WebAuthError.invalidInvitationURL: code = "INVALID_INVITATION_URL"
case WebAuthError.userCancelled: code = "USER_CANCELLED"
case WebAuthError.noAuthorizationCode: code = "NO_AUTHORIZATION_CODE"
case WebAuthError.pkceNotAllowed: code = "PKCE_NOT_ALLOWED"
case WebAuthError.idTokenValidationFailed: code = "ID_TOKEN_VALIDATION_FAILED"
case WebAuthError.transactionActiveAlready: code = "TRANSACTION_ACTIVE_ALREADY"
case WebAuthError.other: code = "OTHER"
Comment thread
NandanPrabhu marked this conversation as resolved.
default: code = "UNKNOWN"
}
var details = webAuthError.details
Expand Down
Loading