Generates a JWT access token for the user (2-hour expiry).
User id to encode in the JWT payload.
Secret used to sign the token (typically SIGNING_KEY env var).
SIGNING_KEY
Signed JWT string.
Generates a JWT access token for the user (2-hour expiry).