mirror of
https://github.com/pockethost/pockethost.git
synced 2025-11-26 23:45:57 +00:00
23 lines
427 B
TypeScript
23 lines
427 B
TypeScript
import { JSONSchemaType } from 'ajv'
|
|
import { UserId } from '..'
|
|
|
|
export type GetUserTokenPayload = {
|
|
id: UserId
|
|
}
|
|
|
|
export type GetUserTokenResult = {
|
|
id: string
|
|
email: string
|
|
tokenKey: string
|
|
passwordHash: string
|
|
}
|
|
|
|
export const GetUserTokenPayloadSchema: JSONSchemaType<GetUserTokenPayload> = {
|
|
type: 'object',
|
|
properties: {
|
|
id: { type: 'string' },
|
|
},
|
|
required: ['id'],
|
|
additionalProperties: false,
|
|
}
|