Decodes an access token and returns the user id from the JWT payload.
Optional
JWT access token string (parameter name is legacy).
User id (number) or null if the token is invalid, expired, or missing.
null
Decodes an access token and returns the user id from the JWT payload.