From 200087f2f65d25e43e089e5ee9645c45e1deb6fd Mon Sep 17 00:00:00 2001 From: Zoe Roux Date: Sat, 19 Oct 2024 18:05:36 +0200 Subject: [PATCH] Fix jwt signing verification --- auth/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/auth/main.go b/auth/main.go index abb0f712..d0a1369b 100644 --- a/auth/main.go +++ b/auth/main.go @@ -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, }))