Fix jwt signing verification

This commit is contained in:
Zoe Roux 2024-10-19 18:05:36 +02:00
parent 2b493e6d16
commit 200087f2f6
No known key found for this signature in database

View File

@ -79,7 +79,6 @@ func OpenDatabase() (*pgxpool.Pool, error) {
config.ConnConfig.RuntimeParams["search_path"] = schema
}
fmt.Printf("Connecting to database with %v\n", config)
db, err := pgxpool.NewWithConfig(ctx, config)
if err != nil {
fmt.Printf("Could not connect to database, check your env variables!")
@ -160,6 +159,7 @@ func main() {
r := e.Group("")
r.Use(echojwt.WithConfig(echojwt.Config{
SigningMethod: "RS256",
SigningKey: h.config.JwtPublicKey,
}))