Skip to content

Commit

Permalink
Auth: rpIdとoriginを環境変数で設定できるように
Browse files Browse the repository at this point in the history
  • Loading branch information
nexryai committed Dec 5, 2024
1 parent 46f7129 commit 8fb9919
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/lib/server/services/AuthService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -149,9 +149,9 @@ class AuthService {
}

export class PasskeyAuthService extends AuthService {
private readonly rpName = "Goshenite Notes";
private readonly rpId = "localhost";
private readonly origin = "http://localhost:5173";
private readonly rpName = "Myurion Notes";
private readonly rpId = process.env.RP_ID || "localhost";
private readonly origin = process.env.APP_URL || "http://localhost:5173";

constructor(
private readonly passkeyRepository: IPasskeyRepository
Expand Down

0 comments on commit 8fb9919

Please sign in to comment.