Skip to content

Commit

Permalink
Update authVersion comments
Browse files Browse the repository at this point in the history
  • Loading branch information
seratch committed Feb 28, 2022
1 parent 469962d commit affafa2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 4 additions & 1 deletion packages/oauth/src/install-provider-options.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,10 @@ export interface InstallProviderOptions {
directInstall?: boolean; // default false, disables rendering "Add to Slack" page for /slack/install when true

/**
* The default is "v2" ("v1" is for "classic" apps)
* The default is "v2" (a.k.a. Granular Bot Permissions), different from "v1" (a.k.a. "Classic Apps").
* More details here:
* - https://medium.com/slack-developer-blog/more-precision-less-restrictions-a3550006f9c3
* - https://api.slack.com/authentication/migration
*/
authVersion?: 'v1' | 'v2'; // default 'v2'

Expand Down
5 changes: 4 additions & 1 deletion packages/oauth/src/install-provider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,10 @@ export class InstallProvider {
// Client Secret, which can be found under the Basic Information section of your application on https://api.slack.com/apps
private clientSecret: string;

// The default is "v2" ("v1" is for "classic" apps)
// The default is "v2" (a.k.a. Granular Bot Permissions), different from "v1" (a.k.a. "Classic Apps").
// More details here:
// - https://medium.com/slack-developer-blog/more-precision-less-restrictions-a3550006f9c3
// - https://api.slack.com/authentication/migration
private authVersion: string;

// @slack/logger logging used in this class
Expand Down

0 comments on commit affafa2

Please sign in to comment.