Skip to content

Allow passing an auth token (JWT) during SSR #18

@thomasballinger

Description

@thomasballinger

Maybe an option like in

export interface ConvexQueryClientOptions extends ConvexReactClientOptions {

like

  /**
   * Set the auth token to this value both during SSR on the server and before
   * the callback specified by ConvexReactClient.setAuth(cb) has returned for
   * the first time.
   *
   * If not specified or set to undefined, send no auth token during SSR and
   * begin the the browser websocket session unauthenticated.
   */
  initialAuth?: string;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions