photo ui update
This commit is contained in:
@@ -164,7 +164,7 @@ export function AuthProvider({ children }: { children: ReactNode }) {
|
||||
|
||||
// Try to get existing user
|
||||
try {
|
||||
console.log('[Auth] Fetching user by email:', email)
|
||||
// console.log('[Auth] Fetching user by email:', email)
|
||||
const existingUser = await getUserByEmail(email, token) as MongoUser
|
||||
setUserId(existingUser.id)
|
||||
setMongoUser(existingUser)
|
||||
@@ -179,7 +179,7 @@ export function AuthProvider({ children }: { children: ReactNode }) {
|
||||
},
|
||||
token
|
||||
) as MongoUser
|
||||
console.log('[Auth] Registered new user:', newUser.id)
|
||||
// console.log('[Auth] Registered new user:', newUser.id)
|
||||
setUserId(newUser.id)
|
||||
setMongoUser(newUser)
|
||||
syncReminderFromDb(newUser)
|
||||
|
||||
Reference in New Issue
Block a user