Sha256: 7909c32d0816f0bd35bcc9f20709add34d6934af212add08aa4fb23479700f26
Contents?: true
Size: 659 Bytes
Versions: 3
Compression:
Stored size: 659 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.set_user(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.exchange_token(plaid_public_token) end def plaid_products Array(Argyle.configuration.product) end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
argyle-0.2.0 | app/controllers/argyle/callback_controller.rb |
argyle-0.1.0 | app/controllers/argyle/callback_controller.rb |
argyle-0.0.1 | app/controllers/argyle/callback_controller.rb |