Skip to content

Commit

Permalink
fix auth
Browse files Browse the repository at this point in the history
  • Loading branch information
rvion committed Dec 7, 2023
1 parent 0761509 commit d59f323
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions src/app/appbar/MenuAuthUI.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export const MenuAuthUI = observer(function MenuAuthUI_(p: {}) {
const avatar = st.auth.avatar ? (
<img tw='rounded' style={{ width: '1.2rem', height: '1.2rem' }} src={st.auth.avatar} alt='user avatar' />
) : (
<span className='material-symbols-outlined'>login</span>
<span className='material-symbols-outlined'>person</span>
)
const username = !st.auth.isConnected ? (
'LOGIN'
Expand All @@ -36,13 +36,23 @@ export const MenuAuthUI = observer(function MenuAuthUI_(p: {}) {
>
{st.auth.isConnected ? (
<div>
<div onClick={() => st.supabase.auth.signOut()} tw='btn '>
<div onClick={() => st.supabase.auth.signOut()} tw='btn'>
Log-Out
</div>
</div>
) : (
<div tw='w-96 px-8'>
<Auth appearance={{ theme: ThemeSupa }} supabaseClient={st.supabase} />
<Auth
providers={[
//
'github',
// 'google',
// 'facebook',
// 'twitter',
]}
appearance={{ theme: ThemeSupa }}
supabaseClient={st.supabase}
/>
</div>
)}
</Dropdown>
Expand Down

0 comments on commit d59f323

Please sign in to comment.