authelia/web/src/services/PushNotification.ts

15 lines
501 B
TypeScript
Raw Normal View History

import { PostWithOptionalResponse } from "./Client";
import { CompletePushNotificationSignInPath } from "./Api";
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);
}