fix: use stable callback redirect_uri for oidc login
This commit is contained in:
@@ -48,7 +48,8 @@ async function handleOidcLogin() {
|
||||
error.value = ''
|
||||
try {
|
||||
const redirect = route.query.redirect || '/me'
|
||||
const callbackUrl = `${window.location.origin}/auth/callback?redirect=${encodeURIComponent(redirect)}`
|
||||
sessionStorage.setItem('post_login_redirect', typeof redirect === 'string' ? redirect : '/me')
|
||||
const callbackUrl = `${window.location.origin}/auth/callback`
|
||||
const res = await getOidcAuthorizeUrl(callbackUrl)
|
||||
window.location.href = res.data.authorize_url
|
||||
} catch (err) {
|
||||
|
||||
Reference in New Issue
Block a user