Back

[SOLVED]How to obtain the user account access token for authentication using a request via Insomnia?

  • 0
  • Accounts
  • Web
0liveiraVictor
18 Mar, 2023, 14:52

I would like to know how to obtain the access token for user authentication after creating a session via email with the accounts API. I am using Insomnia to obtain the information returned after session creation, particularly the providerAccessToken, which returns an empty value. I cannot access my application as an authenticated user without this token.

Ex: { "$id": "6415c5e9cfbc0361682d", "$createdAt": "2023-03-18T14:08:41.856+00:00", "userId": "6413a90b365a70d0f0c2", "expire": "2024-03-17 14:08:41.850", "provider": "email", "providerUid": "my_email", "providerAccessToken": "", "providerAccessTokenExpiry": "", "providerRefreshToken": "", "ip": "my_ip", "osCode": "", "osName": "", "osVersion": "", "clientType": "library", "clientCode": "", "clientName": "Node Fetch", "clientVersion": "1.0", "clientEngine": "", "clientEngineVersion": "", "deviceName": "", "deviceBrand": "", "deviceModel": "", "countryCode": "--", "countryName": "Unknown", "current": true }

TL;DR
The user is having trouble obtaining the access token for user authentication after creating a session via email using the accounts API. They are using Insomnia and need the providerAccessToken value to access their application as an authenticated user. The providerAccessToken value is currently returning as empty. The user is seeking assistance on how to obtain the access token. A solution is not provided in the support thread.
Drake
18 Mar, 2023, 14:55
0liveiraVictor
18 Mar, 2023, 14:56

Thanks, @Steven

Drake
18 Mar, 2023, 14:58

[SOLVED]How to obtain the user account access token for authentication using a request via Insomnia?

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more