robschilder
07/26/2023, 1:57 PMsessionHandle
and the rest in my headers so that my server knows that I am logged in on my app.
const jwtToken = ((await getAccessTokenPayloadSecurely()) as Record<string, string>).jwt
console.log('jwtToken', jwtToken)
const result: DownloadFileResult = await Filesystem.downloadFile({
url,
path: fileName,
directory: Directory.Documents,
headers: {
Authorization: `Bearer ${jwtToken}`,
},
})
But when I do this, in the jwtToken I only find the userData. How can I access the rest?