Skip to content

Commit

Permalink
fix auth arg
Browse files Browse the repository at this point in the history
  • Loading branch information
RUNFUNRUN committed Jul 31, 2024
1 parent 0d2dd7a commit cd7bbad
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/components/auth-components.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,7 @@ export const SignIn = ({
...props
}: { provider?: string } & React.ComponentPropsWithRef<typeof Button>) => {
const handleSignIn = async () => {
await signIn(provider, {
callbackUrl: '/',
});
await signIn();
};
return (
<Button {...props} onClick={handleSignIn}>
Expand All @@ -21,7 +19,7 @@ export const SignIn = ({

export const SignOut = (props: React.ComponentPropsWithRef<typeof Button>) => {
const handleSignOut = async () => {
await signOut({ callbackUrl: '/' });
await signOut();
};
return (
<Button
Expand Down

0 comments on commit cd7bbad

Please sign in to comment.