-
Notifications
You must be signed in to change notification settings - Fork 3
Allow download empty files #200
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
| updateCredentials(token, newToken); | ||
|
|
||
| return right([token, newToken]); | ||
| return right([token ?? '', newToken]); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is this needed?
src/apps/main/auth/service.ts
Outdated
| const isSafeStorageAvailable = safeStorage.isEncryptionAvailable(); | ||
|
|
||
| const token = isSafeStorageAvailable ? ecnryptToken(bearerToken) : bearerToken; | ||
| const token = isSafeStorageAvailable && bearerToken ? ecnryptToken(bearerToken) : bearerToken; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Whats the reason behind this change? if you make it optional then we can return an undefined value
src/context/storage/StorageFiles/application/offline/CacheStorageFile.ts
Outdated
Show resolved
Hide resolved
…djust updateCredentials to allow optional bearerToken
…fresh-token test to reflect new structure
…tly handle time calculations
…o correctly handle time calculations" This reverts commit 24eb2c3.
…tly handle time calculations
…r consistency and clarity
3016df0 to
e380bdd
Compare
|


What is Changed / Added
Why