Abdullah Atta
4fe2f91175
core: throw error if refresh token is not found
2023-01-07 12:48:34 +05:00
Abdullah Atta
d0ddaeba73
core: don't save empty token response
2023-01-06 17:44:07 +05:00
Abdullah Atta
06ad68975f
core: fix Cannot read properties of undefined (reading 'slice')
2023-01-06 17:44:07 +05:00
Abdullah Atta
8c87d00102
core: use access_token from response instead of via errors
...
This is more in line with how auth works:
1. You send a request with credentials
2. The server responds with an access_token
The only difference in this approach is that the client
cannot decide which scopes it wants.
2023-01-06 17:44:07 +05:00
Abdullah Atta
d81f5dba65
refactor: migrate to theme-ui from rebass
2022-08-31 07:26:27 +05:00
Abdullah Atta
c317774c8a
docs: add license header
2022-08-30 16:17:04 +05:00
thecodrr
530a1cc625
feat: add log messages all over the place
2022-07-19 11:16:46 +05:00
thecodrr
a130db41a4
fix: try to refresh token before logging out on 401 unauthorized
2022-01-07 13:58:06 +05:00
thecodrr
2021fe56d5
fix: force logout user on 401 unauthorized error
2022-01-03 13:26:57 +05:00
thecodrr
c089ccbe19
feat: refresh token on 401 unauthorized error
2021-12-31 09:04:13 +05:00
thecodrr
908ef79e7c
revert: fix: refresh token once before giving up
2021-12-04 10:19:33 +05:00
thecodrr
49cd3348d6
fix: refresh token once before giving up
2021-11-09 14:46:12 +05:00
thecodrr
1b675699b6
fix: generate new token on email confirmed
2021-11-01 11:53:28 +05:00
thecodrr
c84b5a28b8
fix: migrate token refreshing to use mutex
2021-10-27 11:19:37 +05:00
thecodrr
7d16b8f388
feat: refactors and add support for upload/download progress
2021-09-26 11:47:13 +05:00
thecodrr
e0202cd22a
fix: do not throw on sync already running
2021-09-13 09:37:52 +05:00
thecodrr
a500247b3c
fix: reconnect SSE on token refresh
2021-08-31 12:11:46 +05:00
thecodrr
918b50116d
fix: invalid_grant when refreshing tokens concurrently
2021-08-08 12:20:07 +05:00
thecodrr
50686b9ebd
fix: set a 5 minute margin between tokens
2021-07-06 12:59:17 +05:00
thecodrr
3d48de5764
feat: do not cache token locally
2021-05-28 23:10:10 +05:00
thecodrr
2632a06e8e
fix: do not send & wait for session expired event
2021-05-26 12:40:15 +05:00
thecodrr
77e980bd04
fix: do not reset retry counter recursively
2021-05-26 12:23:00 +05:00
thecodrr
4e702f4adb
fix: reset retry counter
2021-05-25 16:20:44 +05:00
thecodrr
b4f42137a4
fix: properly handle session expiry
2021-05-25 16:19:58 +05:00
thecodrr
49ee3cd0b3
fix: clear cached token on logout
2021-04-05 11:32:40 +05:00
thecodrr
8d23b23b02
fix: cache access token response
...
This is a hotfix for Android where Database does not write new token
causing user to get logged out.
2021-03-11 14:39:48 +05:00
thecodrr
a085628f5e
fix: refresh token if email got confirmed
2021-01-05 13:07:37 +05:00
thecodrr
a2c3ca4b82
fix: logout using custom logout endpoint
2021-01-04 11:22:24 +05:00
thecodrr
879f9db7e9
feat: add logic to exchange auth code with temp token
2020-12-22 09:47:01 +05:00
thecodrr
f8c306380b
feat: migrate to use the new backend
2020-12-16 12:06:25 +05:00