Comment on page
openSignIn
import React from "react";
import { useSlashAuth } from "@slashauth/slashauth-react";
export const LoginButton = () => {
const { openSignIn } = useSlashAuth();
return (
<button onClick={() => openSignIn()}>Login</button>
);
}
void
Set to
true
to only connect the wallet and not initiate the signin flow.import React from 'react';
import { useSlashAuth } from '@slashauth/slashauth-react';
export const LoginButton = () => {
const { openSignIn } = useSlashAuth();
return (
<button onClick={() => openSignIn({ walletConnectOnly: true })}>
Login
</button>
);
};
Last modified 10mo ago