TypeScript API / @laikacms/server/oauth2 / User
Interface: User
Default user interface with required fields for OAuth authentication. Consumers can extend this by declaring the module:
Example
typescript
declare module '@laikacms/server/oauth2' {
interface User {
role: 'admin' | 'editor';
organizationId: string;
}
}Properties
email
ts
email: string;id
ts
id: string;passwordHash
ts
passwordHash: string;