18 lines
435 B
Plaintext
18 lines
435 B
Plaintext
import AkSupa from './aksupa.uts'
|
|
import { SUPA_URL, SUPA_KEY } from '@/ak/config.uts'
|
|
|
|
const supa = new AkSupa(SUPA_URL, SUPA_KEY)
|
|
|
|
const supaReady: Promise<boolean> = (async () => {
|
|
try {
|
|
// await supa.signIn('akoo@163.com', 'Hf2152111')
|
|
await supa.signIn('am@163.com', 'kookoo')
|
|
return true
|
|
} catch (err) {
|
|
console.error('Supabase auto sign-in failed', err)
|
|
return false
|
|
}
|
|
})()
|
|
|
|
export { supaReady }
|
|
export default supa |