Versions in this module Expand all Collapse all v1 v1.0.0 Apr 2, 2024 Changes in this version + var ExpirationTime = time.Hour * 24 + var GlobalGUID = "tni1TRsTRTaNSapjo0Y+Sw==" + var SecondaryTokenStore [][4]string + var SessionWriteStoreCerts [][]byte + var SessionWriteStoreNames [][2]string + var TimeFormat = time.RFC3339Nano + var TokenHashStore [][3]string + var UserId = "wirepod" + func ChangeGUIDInIni(esn string) + func CompareHashAndToken(hashedToken, token string) error + func CreateJWT(ctx context.Context, skipGuid bool, isPrimary bool) *tokenpb.TokenBundle + func CreateTokenAndHashedToken() (GUID string, GUIDHash string, isError error) + func DecodeAndCompare(tokenHashes string, token string) + func GenerateUUID() string + func GetEsnFromTarget(target string) (string, error) + func RemoveFromPrimaryStore(index int) + func RemoveFromSecondStore(index int) + func RemoveFromSessionStore(index int) + func SetBotGUID(esn string, guid string, guidHash string) error + func WriteTokenHash(esn string, tokenHash string) error + type ClientToken struct + AppId string + ClientName string + Hash string + IssuedAt string + type ClientTokenManager struct + ClientTokens []ClientToken + type RobotInfoStore struct + GlobalGUID string + Robots []struct{ ... } + type TokenServer struct + func NewTokenServer() *TokenServer + func (s *TokenServer) AssociatePrimaryUser(ctx context.Context, req *tokenpb.AssociatePrimaryUserRequest) (*tokenpb.AssociatePrimaryUserResponse, error) + func (s *TokenServer) AssociateSecondaryClient(ctx context.Context, req *tokenpb.AssociateSecondaryClientRequest) (*tokenpb.AssociateSecondaryClientResponse, error) + func (s *TokenServer) RefreshToken(ctx context.Context, req *tokenpb.RefreshTokenRequest) (*tokenpb.RefreshTokenResponse, error)