mirror of
https://github.com/zoriya/flood.git
synced 2026-06-05 03:39:24 +00:00
server: invalidate previous tokens when user changed
This commit is contained in:
@@ -17,7 +17,7 @@ export const credentialsSchema = object({
|
||||
|
||||
export type Credentials = zodInfer<typeof credentialsSchema>;
|
||||
|
||||
export type UserInDatabase = Required<Credentials> & {_id: string};
|
||||
export type UserInDatabase = Required<Credentials> & {_id: string; timestamp: number};
|
||||
|
||||
export const authTokenSchema = object({
|
||||
username: string(),
|
||||
|
||||
Reference in New Issue
Block a user