Merge commit from fork

This commit is contained in:
2h0ng
2025-10-16 23:58:15 -07:00
committed by GitHub
parent 4f7cb7cd2a
commit bfda4ce7e6
2 changed files with 26 additions and 0 deletions

View File

@@ -1,5 +1,6 @@
'use client'
import { useEffect } from 'react'
import { validateRedirectUrl } from '@/utils/urlValidation'
export const useOAuthCallback = () => {
useEffect(() => {
@@ -18,6 +19,7 @@ export const openOAuthPopup = (url: string, callback: () => void) => {
const left = window.screenX + (window.outerWidth - width) / 2
const top = window.screenY + (window.outerHeight - height) / 2
validateRedirectUrl(url)
const popup = window.open(
url,
'OAuth',