How to auth user in react application? #10
-
I pass gqlPath and token to Provider: Provider uses it as ApolloClientTokenizedProvider options Console logs: |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 6 replies
-
There were no problems with apollo client path but token has not been changing I have fixed this problem by using Why do not we have hook to manage apollo client path? @Konard |
Beta Was this translation helpful? Give feedback.
-
@FreePhoenix888 Well such questions is better to directly publish in StackOverflow |
Beta Was this translation helpful? Give feedback.
-
@FreePhoenix888 can I kindly ask you to create a bug that tries to set token using generateApolloClient and passing it to DeepProvider directly, and getting not token on request to links? |
Beta Was this translation helpful? Give feedback.
Use deep.login and pass token there and pass gql path to
Working code: