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
{{ message }}
This repository has been archived by the owner on Oct 26, 2023. It is now read-only.
The API Client is instantiated (both for autorest and otc) and it can keep track of authentication tokens and automatically add that to the header as required. Both clients generate wrappers for calling the API endpoints.
Using React context we could pass the API client (I need to critique this after the initial implementation, but on first thoughts it seems to be a legitimate option).
An reference implementation to be provided and this ticket needs to be revisited.
The text was updated successfully, but these errors were encountered:
devraj
changed the title
Document with code sample a production way of sharing the API client instance across the app
Document with code sample a production way of sharing the API client instance across the app + can this be the same as the Authentication context
Jul 30, 2022
The API Client is instantiated (both for autorest and otc) and it can keep track of authentication tokens and automatically add that to the header as required. Both clients generate wrappers for calling the API endpoints.
Using React context we could pass the API client (I need to critique this after the initial implementation, but on first thoughts it seems to be a legitimate option).
An reference implementation to be provided and this ticket needs to be revisited.
The text was updated successfully, but these errors were encountered: