Add authentication and metrics

This commit is contained in:
Kevin Kandlbinder 2023-03-07 15:14:08 +01:00
parent 7667ea7b90
commit 6abea91d7c
Signed by: kevin
GPG key ID: 1460B586646E180D
16 changed files with 894 additions and 31 deletions

View file

@ -0,0 +1,9 @@
package auth
import "github.com/golang-jwt/jwt/v5"
type JwtClaims struct {
Username string `json:"username"`
Name string `json:"name"`
jwt.RegisteredClaims
}