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 componentsconst { data } = api.auth.me.useQuery()// Server componentsconst data = await api.auth.me()
Was this helpful?