naystack - v1.9.9
    Preparing search index...

    Function getUserIdFromAccessToken

    • Decodes an access token and returns the user id from the JWT payload.

      Parameters

      • OptionalaccessToken: string

        JWT access token string.

      Returns number | null

      User id (number) or null if the token is invalid, expired, or missing.