Fix guardian db hook when refresh the access token

This commit is contained in:
Chocobozzz
2019-08-12 17:41:41 +02:00
parent 6d221212ef
commit ac1dab0fc0
5 changed files with 41 additions and 10 deletions

View File

@@ -32,7 +32,11 @@ defmodule MobilizonWeb.Schema do
@desc "A JWT and the associated user ID"
object :login do
field(:access_token, non_null(:string), description: "A JWT Token for this session")
field(:refresh_token, non_null(:string), description: "A JWT Token to refresh the access token")
field(:refresh_token, non_null(:string),
description: "A JWT Token to refresh the access token"
)
field(:user, non_null(:user), description: "The user associated to this session")
end