2019-11-18 23:37:36 +00:00
|
|
|
import { CompletePushNotificationSignInPath } from "./Api";
|
2021-01-02 10:58:24 +00:00
|
|
|
import { PostWithOptionalResponse } from "./Client";
|
2019-11-18 23:37:36 +00:00
|
|
|
import { SignInResponse } from "./SignIn";
|
|
|
|
|
|
|
|
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
|
|
|
}
|