mirror of
https://github.com/roleypoly/roleypoly.git
synced 2025-04-25 03:49:11 +00:00
chore: add postauthUrl link to skip broken auth flow
This commit is contained in:
parent
10522e73c2
commit
b6ae2abd2f
1 changed files with 4 additions and 0 deletions
|
@ -1,4 +1,5 @@
|
||||||
import { Redirect } from '@reach/router';
|
import { Redirect } from '@reach/router';
|
||||||
|
import { Link } from '@roleypoly/design-system/atoms/typography';
|
||||||
import * as React from 'react';
|
import * as React from 'react';
|
||||||
import { useSessionContext } from '../../contexts/session/SessionContext';
|
import { useSessionContext } from '../../contexts/session/SessionContext';
|
||||||
import { Title } from '../../utils/metaTitle';
|
import { Title } from '../../utils/metaTitle';
|
||||||
|
@ -26,6 +27,9 @@ const NewSession = (props: { sessionID: string }) => {
|
||||||
<>
|
<>
|
||||||
<Title title="Logging you into Roleypoly..." />
|
<Title title="Logging you into Roleypoly..." />
|
||||||
<div>Logging you into Roleypoly...</div>
|
<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 />}
|
{session.isAuthenticated && <Redirect to={postauthUrl} noThrow replace />}
|
||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
|
|
Loading…
Add table
Reference in a new issue