silentworks
08/24/2021, 3:37 PMxo_rawr_XD
08/24/2021, 4:12 PMBrowny
08/25/2021, 5:21 AMPeanut
08/25/2021, 8:35 AMsoedirgo
08/25/2021, 8:57 AM.contains()
with argument `["my tag"]`: https://supabase.io/docs/reference/javascript/containsPeanut
08/25/2021, 9:10 AMuser
08/25/2021, 12:19 PMThePhilip
08/25/2021, 5:24 PMconst { user } = Auth.useUser();
ThePhilip
08/25/2021, 5:24 PMThePhilip
08/25/2021, 5:59 PMburggraf
08/25/2021, 6:21 PMstibbs
08/26/2021, 10:28 AMjavascript
import { createClient } from '@supabase/supabase-js';
const supabaseUrl = import.meta.env.VITE_SUPABASE_URL;
const supabaseAnonKey = import.meta.env.VITE_SUPABASE_ANON_KEY;
export const supabase = createClient(supabaseUrl, supabaseAnonKey);
stibbs
08/26/2021, 10:28 AMLuddensEkko
08/26/2021, 10:38 AMstibbs
08/26/2021, 11:59 AMstibbs
08/26/2021, 12:00 PMstibbs
08/26/2021, 12:01 PMsignUp
javascript
const { user, error } = await supabase.auth.update({
email: "new@email.com",
password: "new-password",
data: { hello: 'world' }
})
stibbs
08/26/2021, 12:08 PMstibbs
08/26/2021, 12:09 PMLuddensEkko
08/26/2021, 12:13 PMstibbs
08/26/2021, 12:14 PMstibbs
08/26/2021, 12:17 PMstibbs
08/26/2021, 12:18 PMkennethcassel
08/26/2021, 12:18 PMselect * from auth.users
kennethcassel
08/26/2021, 12:19 PMstibbs
08/26/2021, 12:21 PMauth.users
a legacy thing that shouldn't be used then?kennethcassel
08/26/2021, 12:28 PMThePhilip
08/26/2021, 5:54 PMThePhilip
08/26/2021, 5:55 PMThePhilip
08/26/2021, 6:24 PMjs
if (window.location.hash) {
var token = window.location.hash.substr(1).split('&')[2].split('=')[1];
if (token) {
supabase.auth
.signIn({
refreshToken: token,
})
.then((info) => {
if (info.user) {
Router.push('/dashboard');
}
});
}
here is my shite solution lol