mirror of
https://github.com/netbirdio/netbird.git
synced 2024-11-25 17:43:38 +01:00
a80c8b0176
checks for users with pending invite status in the cache that already logged in and refresh the cache
20 lines
330 B
Go
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
|
|
}
|