Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

more tightly specifies OAuthAccessArguments and OAuthTokenArguments #503

Merged
merged 2 commits into from
Mar 14, 2018

Conversation

aoberoi
Copy link
Contributor

@aoberoi aoberoi commented Mar 14, 2018

Summary

fixes #481

Requirements (place an x in each [ ])

src/methods.ts Outdated
client_secret: string;
code: string;
redirect_uri?: string;
single_channel?: boolean;
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i'm not 100% sure if this is a boolean, or if it should be '0' | '1'. waiting for confirmation.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it does not support boolean.

Currently it’s implemented to support specifically 1. Anything else will resolve to boolean false behind the scenes.

@codecov
Copy link

codecov bot commented Mar 14, 2018

Codecov Report

Merging #503 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #503   +/-   ##
=======================================
  Coverage   81.32%   81.32%           
=======================================
  Files           6        6           
  Lines         241      241           
  Branches       37       37           
=======================================
  Hits          196      196           
  Misses         29       29           
  Partials       16       16
Impacted Files Coverage Δ
src/WebClient.ts 80.91% <0%> (ø) ⬆️
src/util.ts 67.56% <0%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update dee4b03...501b0af. Read the comment docs.

@aoberoi
Copy link
Contributor Author

aoberoi commented Mar 14, 2018

FYI: the oauth.token Web API endpoint will likely be consolidated into oauth.access, and then disappear.

Copy link

@beardouglas beardouglas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@aoberoi aoberoi merged commit 6902c4e into slackapi:master Mar 14, 2018
@aoberoi aoberoi deleted the oauth-argument-types branch March 14, 2018 22:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

OAuthAccessArguments should not be TokenOverridable
2 participants