mirror of
https://github.com/steveiliop56/tinyauth.git
synced 2026-03-07 23:32:02 +00:00
refactor: implement oidc following tinyauth patterns
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user