Class used to call the AccessToken sub-product.
Sections
Namespace
Methods
Public
Instance Public methods
invalidate(access_token)
Link
Rotate your access_token, keeping it attached to the item
Does a POST /item/access_token/invalidate call which will give you a new access_token allowing you to rotate access_tokens.
- access_token
-
The String access_token to invalidate and rotate.
Returns
Returns an InvalidateResponse object with the new access_token and request id.
Source: show
# File lib/plaid/products/item.rb, line 13 def invalidate(access_token) post_with_auth 'item/access_token/invalidate', InvalidateResponse, access_token: access_token end