mirror of
https://github.com/zoriya/flood.git
synced 2026-05-31 10:22:44 +00:00
flood: rearrange, remove misc files and reformat
This commit is contained in:
@@ -8,7 +8,10 @@ import type {AuthMethod} from '../Auth';
|
||||
// All auth requests are schema validated to ensure security.
|
||||
|
||||
// POST /api/auth/authenticate
|
||||
export const authAuthenticationSchema = credentialsSchema.pick({username: true, password: true});
|
||||
export const authAuthenticationSchema = credentialsSchema.pick({
|
||||
username: true,
|
||||
password: true,
|
||||
});
|
||||
export type AuthAuthenticationOptions = Required<zodInfer<typeof authAuthenticationSchema>>;
|
||||
|
||||
// POST /api/auth/authenticate - success response
|
||||
|
||||
Reference in New Issue
Block a user