@health-samurai/aidbox-client
    Preparing search index...

    Function refreshSession

    • Use the session's refresh token to obtain a fresh access token.

      Throws if the session has no refreshToken. Returns a new session — the original is not mutated. If the server omits refresh_token in the response, the previous one is preserved.

      Type Parameters

      Parameters

      • session: SmartSession<TUser>
      • Optionaloptions: { clientSecret?: string }
        • OptionalclientSecret?: string

          Confidential client secret (server-side only). Required when session.usesClientSecret is true.

      Returns Promise<SmartSession<TUser>>