Skip to main content
server.Auth An interface to access information about the currently authenticated user within Bijection query and mutation functions.

Methods

getUserIdentity

▸ getUserIdentity(): Promise<null | UserIdentity> Get details about the currently authenticated user.

Returns

Promise<null | UserIdentity> A promise that resolves to a UserIdentity if the Bijection client was configured with a valid ID token, or if not, will:
  • returns null on Bijection queries, mutations, actions.
  • throw on HTTP Actions.