Skip to content

Commit

Permalink
Persist all options
Browse files Browse the repository at this point in the history
This catches even optional options
  • Loading branch information
scotttrinh committed Mar 21, 2024
1 parent 45414e6 commit 9e335d0
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions packages/auth-remix/src/client.ts
Expand Up @@ -26,12 +26,11 @@ export class RemixClientAuth {
/** @internal */
constructor(options: RemixAuthOptions) {
this.options = {
authCookieName: "edgedb-session",
pkceVerifierCookieName: "edgedb-pkce-verifier",
...options,
baseUrl: options.baseUrl.replace(/\/$/, ""),
authRoutesPath: options.authRoutesPath?.replace(/^\/|\/$/g, "") ?? "auth",
authCookieName: options.authCookieName ?? "edgedb-session",
pkceVerifierCookieName:
options.pkceVerifierCookieName ?? "edgedb-pkce-verifier",
passwordResetPath: options.passwordResetPath,
};
this.webAuthnClient = new WebAuthnClient({
signupOptionsUrl: `${this._authRoute}/webauthn/signup/options`,
Expand Down

0 comments on commit 9e335d0

Please sign in to comment.