mirror of
https://github.com/Unkn0wnCat/calapi.git
synced 2025-06-10 04:01:47 +02:00
Add authentication and metrics
This commit is contained in:
parent
7667ea7b90
commit
6abea91d7c
16 changed files with 894 additions and 31 deletions
9
internal/auth/jwtClaims.go
Normal file
9
internal/auth/jwtClaims.go
Normal 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
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue