mirror of
https://github.com/zoriya/Kyoo.git
synced 2025-05-24 02:02:36 -04:00
Fix jwt signing verification
This commit is contained in:
parent
2b493e6d16
commit
200087f2f6
@ -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,
|
||||
}))
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user