src/lib/auth.ts
| Symbol | Kind | Line | Parameters |
|---|---|---|---|
UserRole |
type | L18 | |
UserProfile |
interface | L20 | |
SignUpData |
interface | L32 | |
SignInData |
interface | L40 | |
AuthResult |
interface | L45 | |
createSupabaseClient |
function | L59 | |
createSupabaseServerClient |
function | L69 | |
signUp |
function | L83 | data |
signIn |
function | L129 | data |
signOut |
function | L152 | |
getSession |
function | L168 | |
getUser |
function | L178 | |
getUserRole |
function | L188 | user |
isProfessional |
function | L196 | user |
isRenterBuyer |
function | L203 | user |
getUserProfile |
function | L214 | userId |
updateUserProfile |
function | L243 | userId, updates |
sendMagicLink |
function | L275 | email, role |
signInWithGoogle |
function | L304 | role |
onAuthStateChange |
function | L323 | callback |
Imports: @supabase/ssr, @supabase/supabase-js