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
- I'm getting an error on the console "j?....
On my self hosted instance version 1.8.1 the console is giving me this error when trying to view the rows for a table I recently created. My application is read...
- local build `composer installer:dev` iss...
setup - dev container (default linux universal) WSL (test with gh codespace too) - php 8.5.7 - all extensions installed - `composer install` fine - `composer...
- Function global variables
when i create a top-level global variable in go or bun how will it behave? is the heap getting renewed on every execution or could i do some kind of temp. cachi...