Is it possible to not allow the appwrite server to send the refresh token to the client side, only send the token instead?
From which endpoint?
Also, I don't think it would be possible without modifying the code.
ah ok, I don't think it's quite safe to send the refresh token to the client right?
getSession
It's only visible to the current user.
So I'm not sure it can be a safety matter
but that means any javascript that is running on the webpage can get the refresh token
alright
Mmm. By running xhr to that endpoint?
That is an interesting way of thinking.
I think we wait and see what Steven's thinking about it.
alright
Btw for client crefentials grant discord doesn't even give out the refresh token, so... https://discord.com/developers/docs/topics/oauth2#client-credentials-grant
It seems like that the refresh token is useless without the backend secrets
So it looks okay
ye fair enough, never thought about that lol
[SOLVED] Appwrite's Discord Oauth2 expose refresh token on the client side
Recommended threads
- Error can not create `tablesdb` event wi...
When i'm trying to add an event with `tablesdb` i get an error message My event value: `tablesdb.mtg-decklist-dev.tables.queue_parsing.rows.*.create` Same err...
- GitHub Student Login Loop Issue
signed up using my GitHub Student Developer Pack. However, whenever I click "Sign in with GitHub", I get stuck on the login page. No matter how many times I try...
- Google OAuth Not Working on Brave/Firefo...
I'm having an issue with Google OAuth in my React + Appwrite app. After login, the dashboard is accessible only in Microsoft Edge, but fails in Brave and Firefo...