previously we were doing two things that weren't very useful:
in the cli, we were storing clerk user id which isn't very helpful in the context of future api requests where we need our db's user id
in the whoami api response we weren't returning the user object in our db
this pr fixes both of those things
:rocket: This description was created by Ellipsis for commit 6c164b237bdf81ce6ae3f9035ffcb0bf9a01452f
Summary:
This PR enhances user identification in the CLI and API by introducing a new API client class, updating the user schema, and modifying the whoami API response.
Key points:
Introduced MetalApiClient class in /apps/cli/src/index.ts for handling API requests.
Updated configSchema in /apps/cli/src/index.ts to include id and email of the user.
Modified whoami API response in /apps/next/app/api/user/whoami/route.ts to return the user object from the database.
previously we were doing two things that weren't very useful:
this pr fixes both of those things
Summary:
This PR enhances user identification in the CLI and API by introducing a new API client class, updating the user schema, and modifying the
whoami
API response.Key points:
MetalApiClient
class in/apps/cli/src/index.ts
for handling API requests.configSchema
in/apps/cli/src/index.ts
to includeid
andemail
of the user.whoami
API response in/apps/next/app/api/user/whoami/route.ts
to return the user object from the database.Generated with :heart: by ellipsis.dev