File tree Expand file tree Collapse file tree
examples/cra-react-router/src Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11import { createRoot } from "react-dom/client" ;
22import React , { PropsWithChildren } from 'react' ;
33import App from './App' ;
4- import { Auth0Provider , AppState , Auth0ContextInterface , User } from '@auth0/auth0-react' ;
4+ import { Auth0Provider , AppState , User } from '@auth0/auth0-react' ;
55import { BrowserRouter , useNavigate } from 'react-router-dom' ;
66import { Auth0ProviderOptions } from '../../../src/index.js' ;
77
88const Auth0ProviderWithRedirectCallback = ( {
99 children,
1010 context,
1111 ...props
12- } : PropsWithChildren < Omit < Auth0ProviderOptions , 'context' > > & {
13- context ?: React . Context < Auth0ContextInterface < User > >
14- } ) => {
12+ } : PropsWithChildren < Auth0ProviderOptions > ) => {
1513 const navigate = useNavigate ( ) ;
1614
1715 const onRedirectCallback = ( appState ?: AppState , user ?: User ) => {
You can’t perform that action at this time.
0 commit comments