Generates a new access token with the given payload
The data to encode in the token
Promise resolving to the JWT string
Generates a new refresh token with the given payload
The data to encode in the token
Promise resolving to the JWT string
Verifies and decodes a token
The JWT string to verify
Promise resolving to the payload if valid
Service for managing JWT access and refresh tokens