Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DeviceTokenSigningKey = []byte(os.Getenv("TOKEN_SALT"))
View Source
var SlotTokenSigningKey = []byte(os.Getenv("TOKEN_SALT"))
Functions ¶
func ValidateDeviceToken ¶
ValidateToken func
Types ¶
type DeviceClaims ¶
type DeviceClaims struct { DeviceID string `json:"device_id"` jwt.StandardClaims }
DeviceClaims struct
type SlotClaims ¶
type SlotClaims struct { SlotID string `json:"Slot_id"` jwt.StandardClaims }
Click to show internal directories.
Click to hide internal directories.