get-convex / convex-lucia-auth

Convex database adapter for Lucia Auth
https://get-convex.github.io/convex-lucia-auth-demo/
Apache License 2.0
6 stars 1 forks source link

user object returns duplicated IDs #3

Open WebDev-Akhil opened 9 months ago

WebDev-Akhil commented 9 months ago
const user = useQueryWithAuth(api.users.get, {});
  console.log(user);

  // console:
{
    "_creationTime": 1702762092385.2559,
    "_id": "jx73wvm3aj5ebpqz0pd3lsrygn6fqq5s",
    "email": "test@test.com",
    "id": "ewb5fe3sjwlkeq2",
    "userId": "ewb5fe3sjwlkeq2"
}

you can notice that both 'id' and 'userid' are basically the same.

Note: based on this version of docs (updated 2 days ago)