
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
- Selfhosting problem
I'm migrating from cloud to self-hosted. I tried using 'Export to self-hosted instance' and use my free Ngrok domain as Endpoint self-hosted instance, but I got...
- Direct Upgrade from Appwrite v1.5.11 to ...
I'm on Appwrite v1.5.11. Can I upgrade directly to v1.6.2?
- PKCE, Etsy, OIDC, External OAuth provide...
first, thanks for creating and maintaining this software. I'm almost glad i couldn't convince my (wise and wonderful) senior devs to try pocketbase on productio...
