You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi
In the example we are retrieving the auth token from the .env files. Is there a way we can access this from the app state.
I am trying to build an app where I store the JWT in the app state that is passed down using context. From the examples, since the RelayEnvironment is not a react component, I cannot use useContext() to get the token. Is there a way to create a Relay Environment such that it can access fields from the store.
Thanks
P.S: I am not storing the JWT in the browser local storage due to security concerns and am using a refresh token to generate new tokens.
The text was updated successfully, but these errors were encountered:
Hi
In the example we are retrieving the auth token from the .env files. Is there a way we can access this from the app state.
I am trying to build an app where I store the JWT in the app state that is passed down using context. From the examples, since the RelayEnvironment is not a react component, I cannot use useContext() to get the token. Is there a way to create a Relay Environment such that it can access fields from the store.
Thanks
P.S: I am not storing the JWT in the browser local storage due to security concerns and am using a refresh token to generate new tokens.
The text was updated successfully, but these errors were encountered: