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
- is `account.get()` safe to be used in th...
I want to user's `id` for authentication. However, a while ago I was told in this server not to use `account.get()` and instead add user preferences for that us...
- Appwrite console is too heavy
The Appwrite console is too heavy And all of my services broken Any support , please
- Usage of the new Client() and dealing wi...
Hey guys, just a quick one - we had some web traffic the other day and it ended up bombing out - To put in perspective of how the app works, we have a Nuxt Ap...