naystack - v1.5.10
    Preparing search index...

    Function getUserIdFromRefreshToken

    • Decodes a refresh token and returns the user id from the JWT payload.

      Parameters

      • OptionalrefreshToken: string

        JWT refresh token string.

      Returns number | null

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