mirror of
https://github.com/roleypoly/roleypoly.git
synced 2025-06-17 01:59:08 +00:00
Improve pre- and post-auth redirect flows (#180)
* fix(web): add /machinery/new-session/... route, start auth flow from there * fix(api): change redirect to path-based format * fix(api): remove extra / from login-callback redirect * fix(web): /auth/login should skip flows if isAuthenticated is true
This commit is contained in:
parent
8fbf8f2519
commit
fd02dad62b
5 changed files with 33 additions and 11 deletions
|
@ -31,6 +31,10 @@ export const AppRouter = () => {
|
|||
<RouteWrapper component={PickerPage} path="/s/:serverID" />
|
||||
|
||||
<RouteWrapper component={MachineryNewSession} path="/machinery/new-session" />
|
||||
<RouteWrapper
|
||||
component={MachineryNewSession}
|
||||
path="/machinery/new-session/:sessionID"
|
||||
/>
|
||||
<RouteWrapper component={MachineryLogout} path="/machinery/logout" />
|
||||
<RouteWrapper component={MachineryBotJoin} path="/machinery/bot-join" />
|
||||
<RouteWrapper component={MachineryBotJoin} path="/machinery/bot-join/:serverID" />
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue