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:
41666 2021-03-14 16:28:51 -04:00 committed by GitHub
parent 8fbf8f2519
commit fd02dad62b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 33 additions and 11 deletions

View file

@ -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);
}
);