--- title: Sign In subtitle: 2 steps --- ## Step 1: Setup your login The Logto React SDK provides you tools and hooks to quickly implement your own authorization flow. First, let’s enter your redirect URI ```redirectUris Redirect URI ``` Add the following code to your web app ```typescript import React from "react"; import { useLogto } from '@logto/react'; const SignInButton = () => { const { signIn } = useLogto(); const redirectUrl = window.location.origin + '/callback'; return ; }; export default SignInButton; ``` ## Step 2: Retrieve Auth Status ```typescript import React from "react"; import { useLogto } from '@logto/react'; const App = () => { const { isAuthenticated, signIn } = useLogto(); if !(isAuthenticated) { return } return <> }; ```