mirror of https://github.com/buster-so/buster.git
remove logs
This commit is contained in:
parent
e1fb3e0454
commit
47a5405a08
|
@ -18,9 +18,6 @@ export function getSupabaseServerClient() {
|
||||||
throw new Error('Missing Supabase environment variables for server client');
|
throw new Error('Missing Supabase environment variables for server client');
|
||||||
}
|
}
|
||||||
|
|
||||||
console.log('supabaseUrl', supabaseUrl);
|
|
||||||
console.log('supabaseAnonKey', supabaseAnonKey);
|
|
||||||
|
|
||||||
return createServerClient(supabaseUrl, supabaseAnonKey, {
|
return createServerClient(supabaseUrl, supabaseAnonKey, {
|
||||||
cookies: {
|
cookies: {
|
||||||
getAll() {
|
getAll() {
|
||||||
|
|
|
@ -67,15 +67,12 @@ export const signInWithGoogle = createServerFn({ method: 'POST' })
|
||||||
|
|
||||||
export const signInWithAnonymousUser = createServerFn({ method: 'POST' }).handler(async () => {
|
export const signInWithAnonymousUser = createServerFn({ method: 'POST' }).handler(async () => {
|
||||||
const supabase = getSupabaseServerClient();
|
const supabase = getSupabaseServerClient();
|
||||||
console.log('signInWithAnonymousUser', supabase.auth);
|
|
||||||
const { data, error } = await supabase.auth.signInAnonymously();
|
const { data, error } = await supabase.auth.signInAnonymously();
|
||||||
console.log('signInWithAnonymousUser', data, error);
|
|
||||||
if (error) {
|
if (error) {
|
||||||
return { success: false, error: error.message };
|
return { success: false, error: error.message };
|
||||||
}
|
}
|
||||||
|
|
||||||
const session = data.session;
|
const session = data.session;
|
||||||
console.log('signInWithAnonymousUser', session);
|
|
||||||
|
|
||||||
if (!session) {
|
if (!session) {
|
||||||
return { success: false, error: 'No session found' };
|
return { success: false, error: 'No session found' };
|
||||||
|
|
Loading…
Reference in New Issue