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');
|
||||
}
|
||||
|
||||
console.log('supabaseUrl', supabaseUrl);
|
||||
console.log('supabaseAnonKey', supabaseAnonKey);
|
||||
|
||||
return createServerClient(supabaseUrl, supabaseAnonKey, {
|
||||
cookies: {
|
||||
getAll() {
|
||||
|
|
|
@ -67,15 +67,12 @@ export const signInWithGoogle = createServerFn({ method: 'POST' })
|
|||
|
||||
export const signInWithAnonymousUser = createServerFn({ method: 'POST' }).handler(async () => {
|
||||
const supabase = getSupabaseServerClient();
|
||||
console.log('signInWithAnonymousUser', supabase.auth);
|
||||
const { data, error } = await supabase.auth.signInAnonymously();
|
||||
console.log('signInWithAnonymousUser', data, error);
|
||||
if (error) {
|
||||
return { success: false, error: error.message };
|
||||
}
|
||||
|
||||
const session = data.session;
|
||||
console.log('signInWithAnonymousUser', session);
|
||||
|
||||
if (!session) {
|
||||
return { success: false, error: 'No session found' };
|
||||
|
|
Loading…
Reference in New Issue