ФУНКЦИИ - МЕЖПРОЕКТНАЯ КОММУНИКАЦИЯ: Launcher handoff и invite auto-login
This commit is contained in:
@@ -475,6 +475,7 @@ export function LauncherApp() {
|
||||
|
||||
setData(syncLauncherServiceLinks(result.data));
|
||||
setInviteFlow({ status: "registered", payload, loginUrl: result.loginUrl });
|
||||
window.location.replace(result.redirectUrl || "/");
|
||||
} catch (error) {
|
||||
setInviteFlow({
|
||||
status: "error",
|
||||
|
||||
@@ -24,6 +24,8 @@ export interface RegisterInviteCommand {
|
||||
|
||||
export interface RegisterInviteResponse extends AcceptInviteResponse {
|
||||
loginUrl: string;
|
||||
redirectUrl: string;
|
||||
authenticated: boolean;
|
||||
}
|
||||
|
||||
export async function fetchPublicInvite(token: string): Promise<PublicInviteResponse> {
|
||||
|
||||
Reference in New Issue
Block a user