Skip to Content
Documentation
Starter kits
Get Pro
Introduction
Installation

Auth router

An overview of the Auth router

Procedures

The auth router has the following procedures:

Get the current user

Returns the current logged in user and the workspaces they have access to.

  • Access: @protected
// Client components
const { data } = useQuery(trpc.auth.me.queryOptions())

// Server components
const data = await caller.auth.me()
Auth router