Module: Slack::Endpoint::Auth
- Included in:
- Slack::Endpoint
- Defined in:
- lib/slack/endpoint/auth.rb
Instance Method Summary collapse
-
#auth_revoke(options = {}) ⇒ Object
This method revokes an access token.
-
#auth_test(options = {}) ⇒ Object
This method checks authentication and tells you who you are.
Instance Method Details
#auth_revoke(options = {}) ⇒ Object
This method revokes an access token. Use it when you no longer need a token. For example, with a Sign In With Slack app, call this to log a user out.
14 15 16 17 |
# File 'lib/slack/endpoint/auth.rb', line 14 def auth_revoke(={}) [:attachments] = [:attachments].to_json if Hash === [:attachments] post("auth.revoke", ) end |
#auth_test(options = {}) ⇒ Object
This method checks authentication and tells you who you are.
25 26 27 28 |
# File 'lib/slack/endpoint/auth.rb', line 25 def auth_test(={}) [:attachments] = [:attachments].to_json if Hash === [:attachments] post("auth.test", ) end |