naystack - v1.9.9
    Preparing search index...

    Function generateRefreshToken

    • Generates a JWT refresh token for the user (1-year expiry, matching the httpOnly cookie).

      Parameters

      • id: number

        User id to encode in the JWT payload.

      Returns string

      Signed JWT string.