package
0.0.0-20250121042451-806a01064237
Repository: https://github.com/baywiggins/qit-backend.git
Documentation: pkg.go.dev
# Functions
Decrypt decrypts the base64-encoded cipher text using AES-GCM with the given key.
Check if passwords match.
Encrypt plain text using AES-GCM.
GenerateJWTToken generates a short-lived access token (e.g., 15 minutes).
No description provided by the author
GenerateRefreshToken generates a long-lived refresh token (e.g., 7 days).
handleSpotifyError centralizes error handling for Spotify API calls.
Hash password.
RefreshAccessToken uses the refresh token to generate a new access token.
No description provided by the author
No description provided by the author
ValidateJWTToken validates the access token.
ValidateRefreshToken validates the refresh token and returns the claims if valid.
# Structs
Claims structure for both access and refresh tokens.
No description provided by the author