Replies: 1 comment
-
Plus one! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I know, that there is a closed issue (#12) discussing this topic, but I feel its not resolved and we are still struggling.
We are using Directus as a backend and for authentication. Upon login we receive
access_token
andrefresh_token
. Once theaccess_token
expires, any API call fails withTOKEN_EXPIRED
and we are supposed to renew it with therefresh_token
. So far we can handle this in a plugin usinguseGqlError
.The issue we are facing: There seems to be no way to redo the initial API call, that failed with
TOKEN_EXPIRED
. Ideally, the GraphQL client would redo this call and return the result.Has anyone resolved this successfully?
Thanks for any feedback!
Beta Was this translation helpful? Give feedback.
All reactions