Buckets:
| import { OAuth2Client } from "../client.js"; | |
| const authorizationEndpoint = "https://www.epicgames.com/id/authorize"; | |
| const tokenEndpoint = "https://api.epicgames.dev/epic/oauth/v2/token"; | |
| const tokenRevocationEndpoint = "https://api.epicgames.dev/epic/oauth/v2/revoke"; | |
| export class EpicGames { | |
| client; | |
| constructor(clientId, clientSecret, redirectURI) { | |
| this.client = new OAuth2Client(clientId, clientSecret, redirectURI); | |
| } | |
| createAuthorizationURL(state, scopes) { | |
| const url = this.client.createAuthorizationURL(authorizationEndpoint, state, scopes); | |
| return url; | |
| } | |
| async validateAuthorizationCode(code) { | |
| const tokens = await this.client.validateAuthorizationCode(tokenEndpoint, code, null); | |
| return tokens; | |
| } | |
| async refreshAccessToken(refreshToken) { | |
| const tokens = await this.client.refreshAccessToken(tokenEndpoint, refreshToken, []); | |
| return tokens; | |
| } | |
| async revokeToken(token) { | |
| await this.client.revokeToken(tokenRevocationEndpoint, token); | |
| } | |
| } | |
Xet Storage Details
- Size:
- 1.06 kB
- Xet hash:
- 7acc181d21b3f10fd6f9706b232889e1383b88f51cf582e1d8729d00b08473b6
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.