Sha256: 82afb9a84dc34abf2ffc1aa58bdebfe3bf82aef66afdd15548124a355ad4e5ed
Contents?: true
Size: 308 Bytes
Versions: 23
Compression:
Stored size: 308 Bytes
Contents
class Wco::ApiController < ActionController::Base layout false before_action :decode_jwt ## ## private ## private def decode_jwt byebug out = JWT.decode params[:jwt_token], nil, false email = out[0]['email'] user = User.find_by({ email: email }) sign_in user end end
Version data entries
23 entries across 23 versions & 1 rubygems