Skip to Content
Documentation
Buy now
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()

Previous

Router context

Next

Billing router