Found some inconsistancy in Oauth (in React Native, dont know if its same case for other sdks )
- The
getSessiondoes not returnProviderAccessTokenorproviderAccessTokenExpiryknown issue (Stale for a year). - The token has to be fetched from
listIdentities. - The
providerAccessTokenExpirygotten from thelistIdentitiesis actually the creation time of the token instead of expiry time. From my research github tokens lasts for 8 hours or Untill user revokes the token. but google says their oauth token lasts for 1 hour so having the creation time instead of expiry time is not good enough. - To create identity
To create a new identity:
The user must be logged into their Appwrite account
Initiate the OAuth2 authentication flow for the desired provider
The new identity will be automatically created and linked to the current account I am logged in and try to initiate oauth to link i can only go to this point
const result = await WebBrowser.openAuthSessionAsync(`${loginUrl}`, scheme);
i cannot create a session from the result secret and uid as creation of a session is prohibited. so when i just continue instead of creating session the identities are linked but the email is not verified If i would have created/logged in using oauth directly it would have verified my email.
I dont know if any of these are intended , but for more context I created a temporary RN project to check all these I can provide it if you think you need a deeper context.
this is getting more weirder
the token was created at "providerAccessTokenExpiry": "2025-08-19T18:15:53.863+00:00",
i think its about 9 hours atleast
still has not expired
I am having trouble when to get a new one or tell user to refresh for new one
even the users at github are also confused about what is the actual time limit
Recommended threads
- cant resume project
Invalid console fingerprint event i try man time
- Realtime for files() works almost well, ...
I have been trying to make use of realtime, today (14.03.26) I have pulled all the latest versions of docker images, and sdk available. Whats working: - Conn...
- Function issue
Hi,idk whats wrong with my function but i made some changes to the env var and made sure they saved then i redeployed it,but then after it redeeployed it asked ...