Ajout du username dans la réponse de l'API lors de l'obtention d'un token

This commit is contained in:
Lou 2021-06-30 01:15:59 +02:00
commit d6b8083ea4
2 changed files with 4 additions and 1 deletions

View file

@ -11,6 +11,8 @@ class Api::V1::TokensControllerTest < ActionDispatch::IntegrationTest
json_response = JSON.parse(response.body)
assert_not_nil json_response['token']
assert_not_nil json_response['email']
assert_not_nil json_response['username']
end
test 'should not get JWT token' do