MCPcopy Create free account
hub / github.com/better-auth/examples / onSuccess

Function onSuccess

astro-example/src/components/two-factor.tsx:101–103  ·  view source on GitHub ↗
(context)

Source from the content-addressed store, hash-verified

99 alert(context.error.message);
100 },
101 onSuccess(context) {
102 window.location.href = "/dashboard";
103 },
104 },
105 });
106 }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected