binajmen
01/04/2022, 7:39 AMfrom<Type>(...)
jaded
01/04/2022, 1:03 PMeMeRiKa
01/04/2022, 2:15 PMberu
01/04/2022, 2:31 PMthe_thinker
01/04/2022, 2:45 PMjs
const {createClient} = require('@supabase/supabase-js')
const supabase= createClient('data,data')
const signIn = async ()=>{
let {error } = await supabase.auth.signIn({
phone: 'phone no here',
})
if (error){
console.log(error)
return
}
}
const verify = async()=>{
let { session, error } = await supabase.auth.verifyOTP({
phone: 'phone no here',
token: 'thetoken'
})
}
verify()
anand
01/04/2022, 3:13 PMeMeRiKa
01/04/2022, 5:45 PManand
01/04/2022, 5:46 PMdohman
01/04/2022, 8:33 PMjs
testGetEmails: async function () {
const customersRequestTest = await supabase.from('customers').select(['customer_email_address', 'license_active'])
if (customersRequestTest.error) throw customersRequestTest.error
for (const supabaseCustomerTest of customersRequestTest.data) {
console.log(supabaseCustomerTest.customer_email_address);
}
},
Scott P
01/04/2022, 8:36 PMdohman
01/04/2022, 8:42 PMthe_thinker
01/05/2022, 10:29 AMdohman
01/05/2022, 1:02 PMjs
const customersRequest = await supabase.from('customers').select('customer_email_address', 'license_active')
if (customersRequest.error) throw customersRequest.error
await this.sendEmailForm(this.form.userEmailAddress);
console.log(customersRequest.data.join());
for (const supabaseCustomer of customersRequest.data) {
if (supabaseCustomer.license_active == true) {
await this.sendEmailForm(supabaseCustomer.customer_email_address);
console.log('kitica' + supabaseCustomer.customer_email_address);
}
}
But for some reason, my 'check if license is true' logic isn't working.Scott P
01/05/2022, 3:36 PM'customer_email_address', 'license_active'
should be 'customer_email_address, license_active'
. The first argument of select
is always a comma-delimited string if you're selecting multiple columnsFibrasek
01/05/2022, 7:55 PMdohman
01/05/2022, 10:42 PMDeleted User
01/07/2022, 10:36 AMMike92988
01/07/2022, 3:19 PMMac
01/07/2022, 8:04 PMredirectTo
to http://localhost:3000/foobar
, upon successful auth I will be taken to http://localhost:3000/foobar#access_token=123abc&expires_in=3600&you_get=the_idea
, and that's it, hash will stay there.bent
01/08/2022, 1:33 AMsupabase.auth.onAuthStateChange
is broken? The callback I provided is never called, not when I log-in, sign-up or log-out.bent
01/08/2022, 3:22 AMbent
01/08/2022, 3:24 AMVinzent
01/09/2022, 11:13 AMbent
01/09/2022, 5:28 PMtrue
Vinzent
01/09/2022, 6:00 PMbent
01/09/2022, 6:53 PMbent
01/09/2022, 6:53 PMbent
01/09/2022, 6:53 PMbent
01/10/2022, 2:05 AMlogemann
01/10/2022, 11:48 AM