netbird/management/server/jwtclaims/claims.go
Maycon Santos a80c8b0176
Redeem invite only when incoming user was invited (#1861)
checks for users with pending invite status in the cache that already logged in and refresh the cache
2024-04-22 11:10:27 +02:00

20 lines
330 B
Go

package jwtclaims
import (
"time"
"github.com/golang-jwt/jwt"
)
// AuthorizationClaims stores authorization information from JWTs
type AuthorizationClaims struct {
UserId string
AccountId string
Domain string
DomainCategory string
LastLogin time.Time
Invited bool
Raw jwt.MapClaims
}