feat: added support for login via cli

This commit is contained in:
Sheen Capadngan
2024-06-18 15:26:08 +08:00
parent 96ad3b0264
commit 8de4443be1
4 changed files with 29 additions and 11 deletions

View File

@@ -24,8 +24,11 @@ export const SSOStep = ({ setStep, type }: Props) => {
}`
);
} else {
// TODO: Sheen - Add callback support for CLI login
window.open(`/api/v1/sso/oidc/login?orgSlug=${ssoIdentifier}`);
window.open(
`/api/v1/sso/oidc/login?orgSlug=${ssoIdentifier}${
callbackPort ? `&callbackPort=${callbackPort}` : ""
}`
);
}
window.close();