refactor: implement oidc following tinyauth patterns

This commit is contained in:
Stavros
2026-01-24 14:31:03 +02:00
parent 97e90ea560
commit c817e353f6
8 changed files with 621 additions and 290 deletions

View File

@@ -64,9 +64,7 @@ export const AuthorizePage = () => {
toast.info("Authorized", {
description: "You will be soon redirected to your application",
});
window.location.replace(
`${data.data.redirect_uri}?code=${encodeURIComponent(data.data.code)}&state=${encodeURIComponent(data.data.state)}`,
);
window.location.replace(data.data.redirect_uri);
},
onError: (error) => {
window.location.replace(