Skip to content

Conversation

brionmario
Copy link
Member

@brionmario brionmario commented Jul 8, 2025

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:

  • Session-specific Access Token Retrieval: Updated the getAccessToken method across multiple classes and interfaces to accept an optional sessionId 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:

  • React SDK Overview: Added comprehensive documentation for the React SDK, including features, component categories, and usage examples. (packages/react/docs/README.md - [1]; packages/react/docs/components/OVERVIEW.md - [2]; packages/react/docs/components/asgardeo-provider.md - [3]

Configuration Refinements:

  • Environment Variable Updates: Improved clarity in environment variable examples by replacing <your-org-name> with <your-organization-name> in Next.js SDK documentation. (packages/nextjs/QUICKSTART.md - [1]; packages/nextjs/README.md - [2]

Related Issues

Related PRs

  • N/A

Checklist

  • e2e cypress tests locally verified.
  • Manual test round performed and verified.
  • UX/UI review done on the final implementation.
  • Documentation provided. (Add links if there are any)
  • Unit tests provided. (Add links if there are any)
  • Integration tests provided. (Add links if there are any)

Security checks

@brionmario brionmario changed the title chore: expose a http module chore: expose a http module from useAuthentication instead of fetch Jul 8, 2025
@brionmario brionmario merged commit 3c0406c into asgardeo:main Jul 9, 2025
2 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants