Skip to content

Commit

Permalink
chore:fixing git issues
Browse files Browse the repository at this point in the history
  • Loading branch information
BuyankhuuTsCAl committed Oct 10, 2023
2 parents 8b58e50 + c4a80b2 commit 7cbf6c0
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/app/profileScreen/.env
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
SUPABASE_URL = https://raqpvvgsmwarxhaialcz.supabase.co
REACT_APP_ANON_KEY = eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6InJhcXB2dmdzbXdhcnhoYWlhbGN6Iiwicm9sZSI6ImFub24iLCJpYXQiOjE2OTYxODg2MTgsImV4cCI6MjAxMTc2NDYxOH0.triHI7DNSzNeAibtktBZ1b2wQuwnd0WL7R_yZYOJbPc
13 changes: 13 additions & 0 deletions src/app/profileScreen/page.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
'use client';
import { LogOutButton, GlobalStyle } from './style';
<<<<<<< HEAD
import { signOut } from '../../api/supabase/auth/auth';
=======
import { createClient } from '@supabase/supabase-js';
>>>>>>> c4a80b202167a11fa840139d99e3b2211ac65c6c

export default function Profile() {
return (
Expand All @@ -10,3 +14,12 @@ export default function Profile() {
</main>
);
}

async function signOut() {
const supabase = createClient(
'https://raqpvvgsmwarxhaialcz.supabase.co',
'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6InJhcXB2dmdzbXdhcnhoYWlhbGN6Iiwicm9sZSI6ImFub24iLCJpYXQiOjE2OTYxODg2MTgsImV4cCI6MjAxMTc2NDYxOH0.triHI7DNSzNeAibtktBZ1b2wQuwnd0WL7R_yZYOJbPc',
);
const { error } = await supabase.auth.signOut();
}

0 comments on commit 7cbf6c0

Please sign in to comment.