[**Documentation**](../../../README)

***

[Documentation](../../../README) / [zerotal](../../README) / [index](../README) / AuthenticatedUser

# Interface: AuthenticatedUser

Defined in: [packages/core/src/auth/AuthenticatedUser.ts:18](https://github.com/zerotaldev/zerotal/blob/1d6fb26b05b18ba077de1bfaeb46c42131cd8b70/packages/core/src/auth/AuthenticatedUser.ts#L18)

The authenticatable-user contract — the identity of "the current user" as the
kernel and first-party packages refer to it, with **no** commitment to any
particular User model or ORM.

It is intentionally empty. An application makes it concrete by merging its own
User type in, which flows through every core surface that speaks of the
authenticated user (`ctx.user`, the `Auth` facade, policies):

## Example

```ts
// app/models/User.ts
declare module "@zerotal/core/contracts" {
  interface AuthenticatableUser extends User {}
}
```

## Remarks

The `AuthenticatedUser` interface exported from `@zerotal/core` extends this,
so augmenting either interface resolves to the same shape.

## Extends

- [`AuthenticatableUser`](../../contracts/interfaces/AuthenticatableUser)
