mirror of
https://github.com/documenso/documenso.git
synced 2025-11-15 01:01:49 +10:00
fix: migrate 2fa to custom auth
This commit is contained in:
@ -13,6 +13,7 @@ import { oauthRoute } from './routes/oauth';
|
||||
import { passkeyRoute } from './routes/passkey';
|
||||
import { sessionRoute } from './routes/session';
|
||||
import { signOutRoute } from './routes/sign-out';
|
||||
import { twoFactorRoute } from './routes/two-factor';
|
||||
import type { HonoAuthContext } from './types/context';
|
||||
|
||||
// Note: You must chain routes for Hono RPC client to work.
|
||||
@ -46,7 +47,8 @@ export const auth = new Hono<HonoAuthContext>()
|
||||
.route('/callback', callbackRoute)
|
||||
.route('/oauth', oauthRoute)
|
||||
.route('/email-password', emailPasswordRoute)
|
||||
.route('/passkey', passkeyRoute);
|
||||
.route('/passkey', passkeyRoute)
|
||||
.route('/two-factor', twoFactorRoute);
|
||||
|
||||
/**
|
||||
* Handle errors.
|
||||
|
||||
Reference in New Issue
Block a user