examples/with-refresh-auth/README.md
This example shows urql in use with @urql/exchange-auth's authExchange
to support authentication token and refresh token logic. This largely follows the "Authentication" docs
page
and uses the trygql.formidable.dev/graphql/web-collections schema.
To run this example install dependencies and run the start script:
yarn install
yarn run start
# or
npm install
npm run start
This example contains:
urql bindings and a React app set up in src/App.jsxsrc/authStore.jsClient and the authExchange from @urql/exchange-auth set up in src/client.jssrc/pages/LoginForm.jsxsrc/App.jsx
(Note: This isn't using a query in this particular component, since this is just an example)