Sha256: ad0c190ce47acea2df2ccdac001ea69da60c88aebf3ffff1d5a7d40ec352c4ca
Contents?: true
Size: 688 Bytes
Versions: 2
Compression:
Stored size: 688 Bytes
Contents
class Argyle::CallbackController < ApplicationController before_filter :plaid_exchange_token def plaid_access_token @plaid_access_token ||= plaid_exchange_token.access_token end def plaid_user @plaid_user ||= Argyle.plaid_client::User.load(plaid_access_token, plaid_products) end protected def plaid_public_token raise Argyle::Error, "public token not present in request" unless params[:public_token] params[:public_token] end def plaid_exchange_token @plaid_access_token_response ||= Argyle.plaid_client::User.exchange_token(plaid_public_token, params[:account_id]) end def plaid_products Array(Argyle.configuration.product) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
argyle-1.0.0.beta.2 | app/controllers/argyle/callback_controller.rb |
argyle-1.0.0.beta | app/controllers/argyle/callback_controller.rb |