Skip to content

Commit

Permalink
Add token in applcation response
Browse files Browse the repository at this point in the history
  • Loading branch information
hmunish committed Nov 4, 2023
1 parent d3d7a28 commit 1bfff39
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/application_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ def authenticate
user_id = payload['user_id']
@user = User.find(user_id)
rescue StandardError => e
render json: { message: "Error: #{e}", tok: decoded_token }, status: :forbidden
render json: { message: "Error: #{e}", tok: token }, status: :forbidden
end
else
render json: { message: 'No Authorization header sent' }, status: :forbidden
Expand Down

0 comments on commit 1bfff39

Please sign in to comment.