mirror of
https://github.com/roleypoly/roleypoly.git
synced 2025-06-15 17:19:10 +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
|
@ -106,9 +106,7 @@ export const LoginCallback = resolveFailures(
|
|||
|
||||
await Sessions.put(sessionID.string, sessionData, 60 * 60 * 6);
|
||||
|
||||
return Bounce(
|
||||
bounceBaseUrl + '/machinery/new-session?session_id=' + sessionID.string
|
||||
);
|
||||
return Bounce(bounceBaseUrl + 'machinery/new-session/' + sessionID.string);
|
||||
}
|
||||
);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue