Refreshable connections, refactoring, access-token endpoint
- Aded /users/@me/connections/:connection_name/:connection_id/access-token
- Replaced `access_token` property on ConnectedAccount with `token_data` object for refreshing tokens
- Made a common interface for connection things like ComonOAuthTokenResponse
- Added `RefreshableConnection` class
- Added token refresh to Spotify connection (disabled)
1 parent 50f0684 commit 0db1fa5f0b2b9b357c1f96178c0e5df7858a99ab
@Puyodead1 Puyodead1 authored on 24 Dec 2022
Showing 18 changed files
View
src/api/routes/users/@me/connections/#connection_name/#connection_id/access-token.ts 0 → 100644
View
src/api/routes/users/@me/connections/index.ts
View
src/connections/BattleNet/index.ts
View
src/connections/Discord/index.ts
View
src/connections/EpicGames/index.ts
View
src/connections/Facebook/index.ts
View
src/connections/GitHub/index.ts
View
src/connections/Reddit/index.ts
View
src/connections/Spotify/index.ts
View
src/util/connections/Connection.ts
View
src/util/connections/ConnectionStore.ts
View
src/util/connections/RefreshableConnection.ts 0 → 100644
View
src/util/connections/index.ts
View
src/util/dtos/ConnectedAccountDTO.ts
View
src/util/entities/ConnectedAccount.ts
View
src/util/interfaces/ConnectedAccount.ts 0 → 100644
View
src/util/interfaces/index.ts
View
src/util/schemas/ConnectedAccountSchema.ts