chore: expose a http
module from useAuthentication
instead of fetch
#100
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Purpose
This pull request introduces changes to enhance the functionality of the Asgardeo SDKs, improve documentation, and refine configuration examples. The most significant updates include extending the
getAccessToken
method to support session-specific tokens, updating documentation for the React SDK, and refining environment variable examples in the Next.js SDK.Enhancements to SDK Functionality:
getAccessToken
method across multiple classes and interfaces to accept an optionalsessionId
parameter, enabling retrieval of access tokens for specific sessions. (packages/browser/src/__legacy__/client.ts
- [1] [2];packages/browser/src/__legacy__/clients/main-thread-client.ts
- [3];packages/browser/src/__legacy__/helpers/authentication-helper.ts
- [4];packages/browser/src/__legacy__/models/client.ts
- [5];packages/javascript/src/AsgardeoJavaScriptClient.ts
- [6];packages/javascript/src/models/client.ts
- [7]Documentation Updates:
packages/react/docs/README.md
- [1];packages/react/docs/components/OVERVIEW.md
- [2];packages/react/docs/components/asgardeo-provider.md
- [3]Configuration Refinements:
<your-org-name>
with<your-organization-name>
in Next.js SDK documentation. (packages/nextjs/QUICKSTART.md
- [1];packages/nextjs/README.md
- [2]Related Issues
@asgardeo/react
&@asgardeo/nextjs
#81Related PRs
Checklist
Security checks