Commit 5ffcf73
authored
Add OAuth2 FileTokenStorage and OAuth2Manager with tests (#85)
- Implemented `FileTokenStorage` for managing OAuth2 token data using
file storage, including methods for saving, loading, and clearing
tokens.
- Developed `OAuth2Manager` to handle OAuth2 authentication flow,
including token retrieval and refresh logic.
- Added comprehensive unit tests for both `FileTokenStorage` and
`OAuth2Manager` to ensure functionality and error handling.
- Introduced type definitions for `TokenData`, `TokenStorageProvider`,
and `OAuth2Config` to enhance type safety and clarity.
These changes establish a robust foundation for OAuth2 integration,
improving token management and authentication processes in the
application.1 parent a5b6981 commit 5ffcf73
13 files changed
Lines changed: 1484 additions & 0 deletions
File tree
- workers/main
- src/services/OAuth2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
14 | 15 | | |
15 | 16 | | |
16 | 17 | | |
| |||
40 | 41 | | |
41 | 42 | | |
42 | 43 | | |
| 44 | + | |
43 | 45 | | |
44 | 46 | | |
45 | 47 | | |
0 commit comments