mirror of
https://github.com/fosrl/pangolin.git
synced 2026-02-24 13:56:39 +00:00
added two factor to login endpoint
This commit is contained in:
@@ -10,6 +10,8 @@ export const lucia = new Lucia(adapter, {
|
||||
getUserAttributes: (attributes) => {
|
||||
return {
|
||||
email: attributes.email,
|
||||
twoFactorEnabled: attributes.twoFactorEnabled,
|
||||
twoFactorSecret: attributes.twoFactorSecret,
|
||||
};
|
||||
},
|
||||
// getSessionAttributes: (attributes) => {
|
||||
@@ -42,6 +44,8 @@ declare module "lucia" {
|
||||
interface DatabaseUserAttributes {
|
||||
email: string;
|
||||
passwordHash: string;
|
||||
twoFactorEnabled: boolean;
|
||||
twoFactorSecret: string | null;
|
||||
}
|
||||
|
||||
interface DatabaseSessionAttributes {
|
||||
|
||||
Reference in New Issue
Block a user