mirror of
https://github.com/hanzozt/sdk-golang.git
synced 2026-10-30 14:46:37 +00:00
- authentication abstractions from edge-api - adds support for API Session certificates on non-cert auth - adds example - add caPool cfg support - adds example go.work - converts sync.Maps to typed concurrent maps - adds readme for jwtchat example - update git ignore to only ignore root go.work
26 lines
462 B
Go
26 lines
462 B
Go
package storage
|
|
|
|
import "time"
|
|
|
|
type Token struct {
|
|
ID string
|
|
ApplicationID string
|
|
Subject string
|
|
RefreshTokenID string
|
|
Audience []string
|
|
Expiration time.Time
|
|
Scopes []string
|
|
}
|
|
|
|
type RefreshToken struct {
|
|
ID string
|
|
Token string
|
|
AuthTime time.Time
|
|
AMR []string
|
|
Audience []string
|
|
UserID string
|
|
ApplicationID string
|
|
Expiration time.Time
|
|
Scopes []string
|
|
}
|