Versions in this module Expand all Collapse all v0 v0.1.0 Apr 7, 2023 Changes in this version + var DeviceTokenSigningKey = []byte(os.Getenv("TOKEN_SALT")) + var SlotTokenSigningKey = []byte(os.Getenv("TOKEN_SALT")) + func ClaimDeviceToken(deviceID string) (string, error) + func ClaimSlotToken(slotID string) (string, error) + func ValidateDeviceToken(myToken string) (bool, string) + func ValidateSlotToken(myToken string) (bool, string) + type DeviceClaims struct + DeviceID string + type SlotClaims struct + SlotID string