Rank 2: Process
// Create the Appwrite client.const { account } = createAdminClient();
// Create the session using the clientconst session = await account.createEmailPasswordSession(username, password);How can I obtain the user object from this?
I use this code in my hooks.server.ts
const { account } = createSessionClient(event);let appwriteUser = await account.get();But running account.get() on the account variable that I get from createAdminClient will throw a error:
"(role: applications) missing scope (account)"