Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SuperTokenEntry ¶
type SuperTokenEntry struct { ID uuid.UUID ParentID string `db:"parent_id"` RootID string `db:"root_id"` Token *supertoken.SuperToken RefreshToken string `db:"refresh_token"` Name string CreatedAt time.Time `db:"created_at"` IP string `db:"ip_created"` // contains filtered or unexported fields }
SuperTokenEntry holds the information of a SuperTokenEntry as stored in the database
func NewSuperTokenEntry ¶
func NewSuperTokenEntry(st *supertoken.SuperToken, name string, networkData model.ClientMetaData) *SuperTokenEntry
NewSuperTokenEntry creates a new SuperTokenEntry
func (*SuperTokenEntry) Root ¶
func (ste *SuperTokenEntry) Root() bool
Root checks if this SuperTokenEntry is a root token
Click to show internal directories.
Click to hide internal directories.