diff --git a/studio/hooks/misc/withAuth.tsx b/studio/hooks/misc/withAuth.tsx index 15776ca1f05..05eb8a0ee9b 100644 --- a/studio/hooks/misc/withAuth.tsx +++ b/studio/hooks/misc/withAuth.tsx @@ -2,7 +2,7 @@ import { ComponentType, useEffect } from 'react' import Head from 'next/head' import { NextRouter, useRouter } from 'next/router' -import { STORAGE_KEY } from 'lib/gotrue' +import { getNextPath, STORAGE_KEY } from 'lib/gotrue' import { IS_PLATFORM } from 'lib/constants' import { useProfile, useStore, usePermissions } from 'hooks' import Error500 from '../../pages/500' @@ -86,7 +86,7 @@ export function withAuth( to the login page if they are guaranteed (no token at all) to not be logged in. */}