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
- function subdomain ssl certs
The generated subdomain isn't getting a valid ssl cert, I was wondering if appwrite automatically generates one or uses a wildcard for *.functions.domain.com? ...
- Whats best practise for Appwrite Cloud?
Appwrite Teams map very nicely to my needs, it is how i group users together. ... I use roles to define permissions. Should I also map a table to each team ? ...
- Error getting preview of file
Rest Response: ``` { "message": "Server Error", "code": 500, "type": "general_unknown", "version": "1.8.1" } ``` Appwrite Logs ``` appwrite ...