Sha256: b11c088cf97758cd80f89fc51c85ad44d3fdf0807d0e50c0f39fa4992e5c510f
Contents?: true
Size: 425 Bytes
Versions: 1
Compression:
Stored size: 425 Bytes
Contents
module SolidusJwt module Distributor module Devise def after_sign_in_path_for(resource) # Send back json web token in redirect header if try_spree_current_user response.headers['X-SPREE-TOKEN'] = try_spree_current_user. generate_jwt_token(expires_in: SolidusJwt::Config.jwt_expiration) end super end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
solidus_jwt-1.1.0 | lib/solidus_jwt/distributor/devise.rb |