refactor: Add Client Request Time to Client Request and Add it to Context

This commit is contained in:
Moriz Wahl 2022-09-15 12:29:28 +02:00
parent 4b226813aa
commit ad66d2519e

View File

@ -12,6 +12,7 @@ const authLink = new ApolloLink((operation, forward) => {
operation.setContext({
headers: {
Authorization: token && token.length > 0 ? `Bearer ${token}` : '',
clientRequestTime: new Date().toString(),
},
})
return forward(operation).map((response) => {