mirror of
https://github.com/roleypoly/roleypoly.git
synced 2025-04-24 19:39: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 { 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 />}
|
||||
</>
|
||||
);
|
||||
|
|
Loading…
Add table
Reference in a new issue