download
raw
694 Bytes
import { OAuth2Client } from "../client.js";
const authorizationEndpoint = "https://slack.com/openid/connect/authorize";
const tokenEndpoint = "https://slack.com/api/openid.connect.token";
export class Slack {
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;
}
}

Xet Storage Details

Size:
694 Bytes
·
Xet hash:
6952aa1f61a83a2f6531bd285b47a59c94a952b5f1dfe1ad5403fe99a3c9730d

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