chore: add postauthUrl link to skip broken auth flow

This commit is contained in:
41666 2021-03-14 16:44:28 -04:00
parent 10522e73c2
commit b6ae2abd2f

View file

@ -1,4 +1,5 @@
import { Redirect } from '@reach/router';
import { Link } from '@roleypoly/design-system/atoms/typography';
import * as React from 'react';
import { useSessionContext } from '../../contexts/session/SessionContext';
import { Title } from '../../utils/metaTitle';
@ -26,6 +27,9 @@ const NewSession = (props: { sessionID: string }) => {
<>
<Title title="Logging you into Roleypoly..." />
<div>Logging you into Roleypoly...</div>
<div>
<Link href={postauthUrl}>If you aren't redirected soon, click here.</Link>
</div>
{session.isAuthenticated && <Redirect to={postauthUrl} noThrow replace />}
</>
);