This commit is contained in:
hailin 2025-05-20 18:45:56 +08:00
parent 15fbab270e
commit cc9af51a46
1 changed files with 2 additions and 1 deletions

View File

@ -152,7 +152,8 @@ export default function SetupPage() {
}
const handleSaveSetupSetting = async () => {
const session = (await supabase.auth.getSession()).data.session
const supabaseClient = await supabase(); // Await the client creation
const session = (await supabaseClient.auth.getSession()).data.session
if (!session) {
// return router.push(`/${locale}/login`)
//return (`${homePath}/login`)