mirror of
https://github.com/Buriburizaem0n/admin-frontend-domain.git
synced 2026-09-21 02:30:14 +00:00
feat: server transfer rotation
This commit is contained in:
@@ -26,12 +26,12 @@ export default function ProfilePage() {
|
||||
})
|
||||
window.history.replaceState({}, document.title, window.location.pathname)
|
||||
}
|
||||
}, [window.location.search])
|
||||
}, [setProfile])
|
||||
|
||||
const bindO2 = async (provider: string) => {
|
||||
try {
|
||||
const redirectUrl = await getOauth2RedirectURL(provider, Oauth2RequestType.BIND)
|
||||
window.location.href = redirectUrl.redirect!
|
||||
window.location.assign(redirectUrl.redirect!)
|
||||
} catch (error: any) {
|
||||
toast.error(error.message)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user