diff --git a/example/package.json b/example/package.json index 877e638e..c2ba5d14 100644 --- a/example/package.json +++ b/example/package.json @@ -12,7 +12,7 @@ "firebase": "^8.5.0", "firebase-admin": "^9.7.0", "next": "10.2.0", - "next-firebase-auth": "0.13.0-alpha.4", + "next-firebase-auth": "0.13.1-alpha.2", "react": "17.0.2", "react-dom": "17.0.2", "react-firebaseui": "^5.0.2" diff --git a/example/pages/ssr-no-token.tsx b/example/pages/ssr-no-token.tsx index 9aff23bd..c8594ca2 100644 --- a/example/pages/ssr-no-token.tsx +++ b/example/pages/ssr-no-token.tsx @@ -83,6 +83,11 @@ export const getServerSideProps = withAuthUserSSR({ export default withAuthUser({ whenUnauthedAfterInit: AuthAction.REDIRECT_TO_LOGIN, - // FIXME: TypeScript warning when using a functional component - // rather than React.FC or React.ComponentType + // FIXME: Fix this TypeScript warning when using a functional component + // rather than using React.FC or React.ComponentType, which are + // discouraged: + // https://github.com/typescript-cheatsheets/react#function-components + // This may require changing the type definition for `withAuthUser`. + // eslint-disable-next-line @typescript-eslint/ban-ts-comment + // @ts-ignore })(Demo) diff --git a/example/yarn.lock b/example/yarn.lock index 58ac3536..2f90359c 100644 --- a/example/yarn.lock +++ b/example/yarn.lock @@ -2064,10 +2064,10 @@ native-url@0.3.4: dependencies: querystring "^0.2.0" -next-firebase-auth@0.13.0-alpha.4: - version "0.13.0-alpha.4" - resolved "https://registry.yarnpkg.com/next-firebase-auth/-/next-firebase-auth-0.13.0-alpha.4.tgz#bf014230212abe51a5b14b3e52c262225d827a9e" - integrity sha512-LkwBkTUJTxpWKxE34j4Ln7mOx/ihZJvrj2I0uIe36bA/Tvz/jeQHYRzFtUpn/rv2PpyxD3U8V3QNPIhu8fgsFw== +next-firebase-auth@0.13.1-alpha.2: + version "0.13.1-alpha.2" + resolved "https://registry.yarnpkg.com/next-firebase-auth/-/next-firebase-auth-0.13.1-alpha.2.tgz#24299ad32261761cc1b45e7dd014da2123a290e5" + integrity sha512-thvgD3wtIbHTcojMoj6cEX7nychiqwazGlOsRJlz1KbJfMFsQf2be57M55XxDftHdhwXR3rCNJJxfCitDKg1HA== dependencies: cookies "^0.8.0"