
how can i create an email session use this session to get the providerAccessToken from the BE side, this what i have however the const client = new Client() .setEndpoint(this.baseUrl) .setProject(this.projectId); const account = new Account(client2); const appwriteSession = await account.createEmailSession( user.email, pass, ); however the providerAccessToken is empty

That's only available for oauth sessions.
What exactly are you trying to accomplish?

Impersonate the user?

i am crating the signIn method, and i want to get an access_token

Creating a session with email is available only on the client-side.

ohh i see so if the sigin is only through email and password i can't get a session right from the server side?

FYI, it's best to wrap code in backticks to format a bit nicer. You can use 1 backtick for inline code (https://www.markdownguide.org/basic-syntax/#code) and 3 backticks for multiline code (https://www.markdownguide.org/extended-syntax/#syntax-highlighting.

typically, authentication happens client side and server side SDKs are meant for admin related things. see https://appwrite.io/docs/sdks

ok thank will use that, this my first time using discord i see ok thank you

no worries!

Also some more helpful docs:

thanks
Recommended threads
- Random Execution Timeouts and getaddrinf...
Hi, I’m running a self-hosted Appwrite (v1.5.10) on a VPS. My setup involves calling an external API many times from Appwrite Functions. Under higher load, I oc...
- Can't create repos/ clone templates, or ...
My GitHub app can see all my repos, and even create new ones, but the branch isn't visible, which prevents appwrite from deploying. Is this a GitHub app permis...
- Login to appwrite CLI
Hi, appwrite login in cli seems not work for me on localhost when I tried `appwrite login --endpoint http://localhost --verbose` I got an error (file attached)....
