
Found some inconsistancy in Oauth (in React Native, dont know if its same case for other sdks )
- The
getSession
does not returnProviderAccessToken
orproviderAccessTokenExpiry
known issue (Stale for a year). - The token has to be fetched from
listIdentities
. - The
providerAccessTokenExpiry
gotten from thelistIdentities
is 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
- Querying and filtering on relationship a...
Hello! A few short months ago, we decided to migrate from SupaBase over to Appwrite, because we were experiencing a lot of headache with the former when it fina...
- Synchronous function execution timed out...
Hello everyone! I know this is an old question that many of you have already asked, but I'm doing it again because I can't understand the real solution or impl...
- How to migrate my data from Appwrite clo...
Hello guys, due to the recent policy regarding price change, my client want to move to self host, please, how do i begin the data migration.
