Learn how to set up, log in, or sign up easily in your React app using @turnkey/react-wallet-kit.
handleLogin
function from the useTurnkey
hook. This will automatically show a modal with all the authentication methods you’ve enabled in your dashboard.
authState
variable from the useTurnkey
hook.
onAuthenticationSuccess
callback passed in through the TurnkeyProvider
to handle post-authentication logic, such as redirecting.
TurnkeyProvider
’s config. You can also toggle openOauthInPage
to true
if you want the OAuth flow to replace the current page instead of opening a new popup.
TurnkeyProvider
config.
For example, for Google, you can create a web client ID in the Google developer console.