Ajout du username dans la réponse de l'API lors de l'obtention d'un token
This commit is contained in:
parent
799863f03f
commit
d6b8083ea4
2 changed files with 4 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue