Skip to content

Commit

Permalink
feat: mdx useAuthentication update
Browse files Browse the repository at this point in the history
  • Loading branch information
RobChangCA committed Sep 20, 2024
1 parent 666a2a3 commit 098af23
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 11 deletions.
2 changes: 1 addition & 1 deletion account-kit/react/src/hooks/useAuthenticate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export type UseAuthenticateResult = {
* ```ts
* import { useAuthenticate } from "@account-kit/react";
*
* const { authenticate, authenticateAsync, isPending, error } = useAuthenticate({
* const { authenticate, authenticateAsync, isPending, error, stage } = useAuthenticate({
* // these are optional
* onSuccess: () => {
* // do something on success
Expand Down
2 changes: 1 addition & 1 deletion account-kit/react/src/version.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
// This file is autogenerated by inject-version.ts. Any changes will be
// overwritten on commit!
export const VERSION = "4.0.0-beta.5";
export const VERSION = "4.0.0-beta.6";
4 changes: 2 additions & 2 deletions examples/ui-demo/src/components/preview/AuthCardWrapper.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import {
useLogout,
useUser,
} from "@account-kit/react";
import { MintDemoWrapper } from "./MintDemoWrapper";
import { useMemo } from "react";

export function AuthCardWrapper({ className }: { className?: string }) {
Expand All @@ -32,7 +31,8 @@ export function AuthCardWrapper({ className }: { className?: string }) {
</div>
</>
) : (
<MintDemoWrapper />
null
// In flight- will be uncommented in the mint pr, a fast follow <MintDemoWrapper />
)}
{user && (
<button
Expand Down
15 changes: 8 additions & 7 deletions site/pages/reference/account-kit/react/hooks/useAuthenticate.mdx

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 098af23

Please sign in to comment.