Skip to content

Commit 0d23031

Browse files
committed
fix: logout empty screen
1 parent e3728eb commit 0d23031

2 files changed

Lines changed: 1 addition & 3 deletions

File tree

apps/react-example/src/wagmi.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export const wagmiConfig = createConfig({
1212
auth: {
1313
magicLinkBaseUrl: 'http://localhost:3000/verify',
1414
enabledMethods: ['email', 'google', 'passkey', 'injected-wallet'],
15-
// emailAuthMethod: 'otp', // set email auth method, 'magicLink' or 'otp', default is 'magicLink'
15+
emailAuthMethod: 'otp', // set email auth method, 'magicLink' or 'otp', default is 'magicLink'
1616
termsAndConditionsUrl: 'https://www.example.com',
1717
privacyPolicyUrl: 'https://www.example.com',
1818
onSuccess: () => {

packages/react-kit/src/auth/pages/Verifying.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,6 @@ export function Verifying() {
3232
onSuccess: async () => {
3333
clearOtpSession()
3434
goToStep('authenticated')
35-
// Navigate the address bar off the magic-link landing URL so a
36-
// refresh doesn't re-trigger verification.
3735
if (typeof window !== 'undefined') {
3836
window.history.replaceState({}, '', '/')
3937
}

0 commit comments

Comments
 (0)