Skip to content

chore: update docs and correct authentication payload types#15

Merged
hriczzoli merged 1 commit intomainfrom
chore-docs-and-types-update-auth
Mar 10, 2026
Merged

chore: update docs and correct authentication payload types#15
hriczzoli merged 1 commit intomainfrom
chore-docs-and-types-update-auth

Conversation

@hriczzoli
Copy link
Contributor

No description provided.

@hriczzoli hriczzoli self-assigned this Feb 27, 2026
@hriczzoli hriczzoli added the documentation Improvements or additions to documentation label Feb 27, 2026
Copilot AI review requested due to automatic review settings February 27, 2026 14:35
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR simplifies the authentication API by removing the mode parameter and associated types (AuthMode, AuthPayload, AuthCredentials). The authentication now directly uses KeycloakTokenResponse from the identity provider without requiring an additional mode field. The PR also standardizes quote style to single quotes across type definitions.

Changes:

  • Removed AuthMode, AuthPayload, and AuthCredentials types, replacing them with direct use of KeycloakTokenResponse
  • Updated all authentication-related code, tests, and documentation to remove the mode field
  • Standardized string literal quotes from double to single quotes in type definition files

Reviewed changes

Copilot reviewed 9 out of 9 changed files in this pull request and generated no comments.

Show a summary per file
File Description
src/types/protocol.ts Removed AuthMode type definition and converted quotes to single quotes for consistency
src/types/payloads.ts Removed AuthPayload interface that extended KeycloakTokenResponse with mode field; standardized quotes
src/types/api.ts Removed AuthCredentials type alias and updated auth() signature to use KeycloakTokenResponse
src/CortiEmbedded.ts Updated auth() method signature and removed mode field from payload construction
src/utils/PostMessageHandler.ts Updated auth() method signature to accept KeycloakTokenResponse
test/corti-embedded.test.ts Updated test credentials to use KeycloakTokenResponse and removed mode field from test data
demo/demo.ts Updated type imports and removed type assertion for auth payload parsing
docs/react-usage.md Removed mode field from authentication example
README.md Updated authentication documentation to remove references to mode field

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@hriczzoli hriczzoli merged commit 3bbdfb4 into main Mar 10, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants