Skip to content

Commit

Permalink
fix: remove unused methods
Browse files Browse the repository at this point in the history
  • Loading branch information
J0 committed Oct 10, 2024
1 parent 98eaf78 commit 1d2f20d
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 16 deletions.
1 change: 0 additions & 1 deletion src/GoTrueClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,6 @@ import type {
AuthenticatorTransportFuture,
PublicKeyCredentialCreationOptionsJSON,
RegistrationResponseJSON,
AuthenticationCredential,
MFAVerifySingleStepWebAuthnParams,
AuthMFAEnrollResponse,
} from './lib/types'
Expand Down
15 changes: 0 additions & 15 deletions src/lib/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -357,8 +357,6 @@ export function parseResponseAPIVersion(response: Response) {
}
}

// Taken from simplewebauthn

/**
* Convert from a Base64URL-encoded string to an Array Buffer. Best used when converting a
* credential ID from a JSON string to an ArrayBuffer, like in allowCredentials or
Expand Down Expand Up @@ -455,19 +453,6 @@ class BaseWebAuthnAbortService {
this.controller = newController
return newController.signal
}

/**
* Manually cancel any active WebAuthn registration or authentication attempt.
*/
cancelCeremony() {
if (this.controller) {
const abortError = new Error('Manually cancelling existing WebAuthn API call')
abortError.name = 'AbortError'
this.controller.abort(abortError)

this.controller = undefined
}
}
}

/**
Expand Down

0 comments on commit 1d2f20d

Please sign in to comment.