add credentials login with secure cookies
This commit is contained in:
3
packages/common/src/models/auth/auth-token-payload.ts
Normal file
3
packages/common/src/models/auth/auth-token-payload.ts
Normal file
@@ -0,0 +1,3 @@
|
||||
export interface AuthTokenPayload {
|
||||
userId: string;
|
||||
}
|
||||
@@ -5,10 +5,4 @@ export const credentialAuthParser = z.object({
|
||||
password: z.string({ message: "invalid password" }),
|
||||
});
|
||||
|
||||
export const credentialAuthResponse = z.object({
|
||||
accessToken: z.string({ message: "invalid access tokens" }),
|
||||
});
|
||||
|
||||
export type CredentialAuth = z.infer<typeof credentialAuthParser>;
|
||||
|
||||
export type CredentialAuthResponse = z.infer<typeof credentialAuthResponse>;
|
||||
|
||||
@@ -1,2 +1,3 @@
|
||||
export * from "./auth-token-payload";
|
||||
export * from "./credential-auth";
|
||||
export * from "./reset-auth";
|
||||
|
||||
Reference in New Issue
Block a user