download
raw
859 Bytes
import { OAuth2Client } from "../client.js";
const authorizationEndpoint = "https://bitbucket.org/site/oauth2/authorize";
const tokenEndpoint = "https://bitbucket.org/site/oauth2/access_token";
export class Bitbucket {
client;
constructor(clientId, clientSecret, redirectURI) {
this.client = new OAuth2Client(clientId, clientSecret, redirectURI);
}
createAuthorizationURL(state) {
const url = this.client.createAuthorizationURL(authorizationEndpoint, state, []);
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;
}
}

Xet Storage Details

Size:
859 Bytes
·
Xet hash:
942c4fae146a1fa69a5911ed00b3aff83117a7a4b8e62428452e251f08ed402f

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.