diff --git a/pkg/token.go b/pkg/token.go new file mode 100644 index 0000000..03cbd48 --- /dev/null +++ b/pkg/token.go @@ -0,0 +1,18 @@ +package token + +import ( + "github.com/golang-jwt/jwt/v5" + "github.com/google/uuid" +) + +type Claims struct { + UserId string `json:"user_id"` + Role string `json:"role"` + jwt.RegisteredClaims +} + +type Login struct { + AccessToken string `json:"access_token"` + TokenType string `json:"token_type"` + ExpiresIn int64 `json:"expires_in"` +}