🐛 Bug Report: Unable to get current user session on functions using jwt
- Lingua principale
- TypeScript
- Stelle
- 57.4k
- Fork
- 5.7k
- Merge medio
- 15h 19m
- PR unite (30g)
- 300
Descrizione
### 👟 Reproduction steps
```
import { Client} from 'node-appwrite';
const userClient = new Client();
const userAccount = new Account(userClient);
userClient.setEndpoint(FUNCTIONS_END_POINT)
.setProject(PROJECT_ID)
.setJWT(x-appwrite-user-jwt);
const currentSession = await userAccount.getSession('current');
```
### 👍 Expected behavior
getSession('current') should return the current user session that is being used.
### 👎 Actual Behavior
Fails with user_session_not_found error.
`
{"code":404,"type":"user_session_not_found","response":{"message":"The current user session could not be found."...}},
`
### 🎲 Appwrite version
Appwrite Cloud
### 💻 Operating system
Linux
### 🧱 Your Environment
1.5.5
### 👀 Have you spent some time to check if this issue has been raised before?
- [X] I checked and didn't find similar issue
### 🏢 Have you read the Code of Conduct?
- [X] I have read the [Code of Conduct](https://github.com/appwrite/.github/blob/main/CODE_OF_CONDUCT.md)
Guida per i contributori
Apri la guida per i contributori
Valutazione
Questa issue non è ancora stata valutata.