forked from didirus/AstralRinth
Fix PayPal SSO OAuth callback (#4758)
* Maybe fix PayPal SSO * cargo sqlx prepare * maybe works * Attempt 2 of fixing * Fix vue * Try adding more logging to flow
This commit is contained in:
@@ -140,9 +140,10 @@ const paypalEmail = computed(() => {
|
||||
|
||||
const paypalAuthUrl = computed(() => {
|
||||
const route = useRoute()
|
||||
const authToken = useCookie('auth-token')
|
||||
const separator = route.fullPath.includes('?') ? '&' : '?'
|
||||
const returnUrl = `${route.fullPath}${separator}paypal_auth_return=true`
|
||||
return getAuthUrl('paypal', returnUrl)
|
||||
return `${getAuthUrl('paypal', returnUrl)}&auth_token=${authToken.value}`
|
||||
})
|
||||
|
||||
function handlePayPalAuth() {
|
||||
|
||||
Reference in New Issue
Block a user