Skip to content

Commit

Permalink
Update auth.rb add accessTokenInfo
Browse files Browse the repository at this point in the history
Add accessTokenInfo method
  • Loading branch information
atejada committed Apr 22, 2024
1 parent 8490435 commit bc386ed
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions lib/nylas/resources/auth.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,17 @@ class Auth < Resource
include ApiOperations::Post
include ApiOperations::Get

# Get info about a specific token based on the identifier you include. Use either the ID Token or Access Token.
#
# @param ID of the request.
# @return [Hash] Token Info.
def accessTokenInfo(query_params: nil)
get(
path: "#{api_uri}/v3/connect/tokeninfo",
query_params: query_params
)
end

# Builds the URL for authenticating users to your application with OAuth 2.0.
#
# @param config [Hash] Configuration for building the URL.
Expand Down

0 comments on commit bc386ed

Please sign in to comment.