refactor: remove the deprecated auth options
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
@@ -160,10 +160,6 @@ export interface AuthEngine {
|
||||
key: string;
|
||||
response: unknown;
|
||||
name?: string;
|
||||
/** @deprecated Verification uses the RP ID bound to the issued challenge. */
|
||||
rpId?: string;
|
||||
/** @deprecated Verification uses the origin bound to the issued challenge. */
|
||||
origin?: string;
|
||||
},
|
||||
): Promise<boolean>;
|
||||
beginPasskeyAuthentication(input: {
|
||||
@@ -176,10 +172,6 @@ export interface AuthEngine {
|
||||
response: unknown;
|
||||
/** Request metadata used only for the resulting session. */
|
||||
session?: Partial<AuthSession>;
|
||||
/** @deprecated Verification uses the RP ID bound to the issued challenge. */
|
||||
rpId?: string;
|
||||
/** @deprecated Verification uses the origin bound to the issued challenge. */
|
||||
origin?: string;
|
||||
}): Promise<AuthResult>;
|
||||
changePassword(
|
||||
userId: string,
|
||||
@@ -832,7 +824,7 @@ export function createAuthEngine(options: AuthEngineOptions): AuthEngine {
|
||||
store,
|
||||
onSignedIn: options.onSignedIn,
|
||||
onSignedOut: options.onSignedOut,
|
||||
onSuccessfulSignUp: options.onSuccessfulSignUp ?? options.onSuccessfullSignUp,
|
||||
onSuccessfulSignUp: options.onSuccessfulSignUp,
|
||||
|
||||
async register(input) {
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user