Skip to content

Commit 3448fb1

Browse files
fix: update cra example to use Auth0ProviderOptions directly instead of Omit
1 parent ac6e0ec commit 3448fb1

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

examples/cra-react-router/src/index.tsx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,15 @@
11
import { createRoot } from "react-dom/client";
22
import React, { PropsWithChildren } from 'react';
33
import App from './App';
4-
import { Auth0Provider, AppState, Auth0ContextInterface, User } from '@auth0/auth0-react';
4+
import { Auth0Provider, AppState, User } from '@auth0/auth0-react';
55
import { BrowserRouter, useNavigate } from 'react-router-dom';
66
import { Auth0ProviderOptions } from '../../../src/index.js';
77

88
const 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) => {

0 commit comments

Comments
 (0)