mirror of
https://github.com/0rangebananaspy/authelia.git
synced 2024-09-14 22:47:21 +07:00
11 lines
335 B
TypeScript
11 lines
335 B
TypeScript
|
import { ChecksSafeRedirectionPath } from "@services/Api";
|
||
|
import { PostWithOptionalResponse } from "@services/Client";
|
||
|
|
||
|
interface SafeRedirectionResponse {
|
||
|
ok: boolean;
|
||
|
}
|
||
|
|
||
|
export async function checkSafeRedirection(uri: string) {
|
||
|
return PostWithOptionalResponse<SafeRedirectionResponse>(ChecksSafeRedirectionPath, { uri });
|
||
|
}
|