Probably fixes losing query params when deployed via Amplify.
This commit is contained in:
parent
f355ff391c
commit
0958401b3b
@ -46,13 +46,13 @@ function AuthPage({ padLockApng }: AuthPageProps): JSX.Element {
|
|||||||
|
|
||||||
const handleAppleAuth = async () => {
|
const handleAppleAuth = async () => {
|
||||||
window.location.href = routes.server.appleAuth(
|
window.location.href = routes.server.appleAuth(
|
||||||
encodeURI(`${window.location.origin}/auth/result`)
|
encodeURI(`${window.location.origin}/auth/result/`)
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
const handleGoogleAuth = async () => {
|
const handleGoogleAuth = async () => {
|
||||||
window.location.href = routes.server.googleAuth(
|
window.location.href = routes.server.googleAuth(
|
||||||
encodeURI(`${window.location.origin}/auth/result`)
|
encodeURI(`${window.location.origin}/auth/result/`)
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user