The hub as an OpenID Connect provider for T5DE Music
This commit is contained in:
1 parent
f0a9661f8e
commit
096ee32fa5
20 files changed
+6531
-29
No files matched your search
@@ -18,6 +18,8 @@ export function SignInForm({ next }: { next: string }) {
|
||||
const [step, setStep] = useState<"password" | "code" | "backup">("password");
|
||||
|
||||
const done = () => {
|
||||
// Back to the hub's authorize endpoint (signing in for another T5DE site): a full page load, it's the API's.
|
||||
if (next.startsWith("/api/")) return window.location.assign(next);
|
||||
router.push(next);
|
||||
router.refresh();
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user