December 2019
Intermediate to advanced
598 pages
12h 21m
English
Let's implement the sign-in page in SignInPage.tsx:
import React, { FC } from 'react';import { Page } from './Page';import { StatusText } from './Styles';import { useAuth } from './Auth';
StatusText is a shared style we are going to use when we inform the user that we are redirecting to and from Auth0. useAuth is the custom Hook we implemented earlier that will give us access to the authentication context.
type SigninAction = 'signin' | 'signin-callback';interface Props { action: SigninAction;}
The component takes in an action prop that gives the current stage of the sign-in process.
Read now
Unlock full access