feat: 上传缺失文件
This commit is contained in:
17
app/lib/supabase.js
Normal file
17
app/lib/supabase.js
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
import { createClient } from '@supabase/supabase-js';
|
||||||
|
|
||||||
|
// Supabase 配置
|
||||||
|
// 注意:此处使用 publishable key,可安全在客户端使用
|
||||||
|
const supabaseUrl = 'https://mouvsqlmgymsaxikvqsh.supabase.co/auth/v1/otp';
|
||||||
|
const supabaseAnonKey = 'sb_publishable_c5f58knbVz8UgOh6L88MUQ_p9j8c1Q-';
|
||||||
|
|
||||||
|
export const supabase = createClient(supabaseUrl, supabaseAnonKey, {
|
||||||
|
auth: {
|
||||||
|
// 启用自动刷新 token
|
||||||
|
autoRefreshToken: true,
|
||||||
|
// 持久化 session 到 localStorage
|
||||||
|
persistSession: true,
|
||||||
|
// 检测 URL 中的 session(用于邮箱验证回调)
|
||||||
|
detectSessionInUrl: true
|
||||||
|
}
|
||||||
|
});
|
||||||
Reference in New Issue
Block a user