You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
chore: fix TypeScript errors in login and logout files (#6880)
* chore: fix TypeScript errors in login and logout files
Fixed TS errors in login and logout.
Created `tokenTuple` type for the `getToken` function's return type
Updated `getToken` function calls to remove TypeScript ignore comments
Co-authored-by: Ben Hancock<benhancock859@gmail.com>
* fix: corrected tuple type
Co-authored-by: Ben Hancock <benhancock859@gmail.com>
* fix: type narrowed in /integration/deploy.ts to avoid passing undefined tokens
Co-authored-by: Ben Hancock <benhancock859@gmail.com>
* chore: extracted Location to its own type
Co-authored-by: Ben Hancock <benhancock859@gmail.com>
* fix: fix to building headers object for fetch request in deploy.ts
Co-authored-by: Ben Hancock <benhancock859@gmail.com>
* fix: reverted `getToken` changes back to previous
In cases where `getToken` can't find a token,
changed it back to previous behavior of returning `[null, 'not found']`.
Changed `tokenTuple` type to reflect changes.
This preserves previous behavior while ensuring type safety for
function calls that use `getToken`'s return value. This required a
new variable `blobsToken` to satisfy `runCoreSteps` function argument type requirements.
Co-authored-by: Ben Hancock <benhancock859@gmail.com>
* Update src/utils/types.ts
Co-authored-by: Daniel Lew <51924260+DanielSLew@users.noreply.github.com>
* fix: updated Location type to TokenLocation to be more specific
Co-authored-by: Ben Hancock <benhancock859@gmail.com>
---------
Co-authored-by: Ben Hancock <benhancock859@gmail.com>
Co-authored-by: Daniel Lew <51924260+DanielSLew@users.noreply.github.com>
0 commit comments