Versions in this module Expand all Collapse all v1 v1.0.4 Feb 25, 2024 v1.0.3 Feb 25, 2024 Changes in this version + func GenerateAuthCode(userId, joinCode string) (authCode string) + func GenerateKeys(authCode string, pubkey ed25519.PublicKey, privkey ed25519.PrivateKey) (encodedSignature, base64PublicKey string) + func GenerateToken(userId, authCode, encodedSignature, base64PublicKey string) (token string) + func Logout() + func ValidateToken(accessToken string) (status bool) + type AuthCodeStruct struct + AuthCode string + type TokenStruct struct + AccessToken string + AccessTokenExpires int + RefreshToken string + RefreshTokenExpires int + func RefreshToken(refreshToken string) (tokenStruct TokenStruct, status bool)