Skip to content

Commit

Permalink
Review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
bcspragu committed Sep 22, 2023
1 parent 6d6fce5 commit 1e0b3b2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions cmd/server/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,6 @@ func run(args []string) error {
if err != nil {
return fmt.Errorf("failed to decrypt secrets: %w", err)
}
pub := sec.AuthVerificationKey.PublicKey

if *localDSN != "" && *env != "local" {
return errors.New("--local_dsn set outside of local environment")
Expand Down Expand Up @@ -142,7 +141,7 @@ func run(args []string) error {

r := chi.NewRouter()

jwKey, err := jwk.FromRaw(pub)
jwKey, err := jwk.FromRaw(sec.AuthVerificationKey.PublicKey)
if err != nil {
return fmt.Errorf("failed to make JWK key: %w", err)
}
Expand Down

0 comments on commit 1e0b3b2

Please sign in to comment.