2021-06-19 08:20:43 +00:00
|
|
|
import { CompletePushNotificationSignInPath } from "@services/Api";
|
|
|
|
import { PostWithOptionalResponse } from "@services/Client";
|
|
|
|
import { SignInResponse } from "@services/SignIn";
|
2019-11-18 23:37:36 +00:00
|
|
|
|
|
|
|
interface CompleteU2FSigninBody {
|
|
|
|
targetURL?: string;
|
|
|
|
}
|
|
|
|
|
|
|
|
export function completePushNotificationSignIn(targetURL: string | undefined) {
|
|
|
|
const body: CompleteU2FSigninBody = {};
|
|
|
|
if (targetURL) {
|
|
|
|
body.targetURL = targetURL;
|
|
|
|
}
|
|
|
|
return PostWithOptionalResponse<SignInResponse>(CompletePushNotificationSignInPath, body);
|
2021-01-02 10:58:24 +00:00
|
|
|
}
|