refactor: remove the deprecated auth options

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
2026-08-20 01:38:08 +05:30
co-authored by Claude Opus 5
parent 97d60d0ba8
commit 7f5e1bc3cf
8 changed files with 5 additions and 73 deletions
+1 -9
View File
@@ -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 {