Sha256: 0571b622fd8c345d0a6c3531a76945dda22da19b67cbb5ca7bb75ddb2fcb3c53
Contents?: true
Size: 297 Bytes
Versions: 9
Compression:
Stored size: 297 Bytes
Contents
class Iro::ApiController < ActionController::Base layout false before_action :decode_jwt ## ## private ## private def decode_jwt 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
9 entries across 9 versions & 1 rubygems