| 1 | import { apiKeyClient } from "@better-auth/api-key/client"; |
| 2 | import { createAuthClient } |
| 3 | import { adminClient, twoFactorClient |
| 4 | |
| 5 | export const authClient = |
| 6 | plugins: [ |
| 7 | adminClient(), |
| 8 | twoFactorClient({ |
| 9 | onTwoFactorRedirect() { |
| 10 | window.location.href |
| 11 | }, |
| 12 | }), |
| 13 | apiKeyClient(), |
| 14 | ], |
| 15 | }); |