Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add widgets client and get token API support #378

Merged
merged 1 commit into from
Nov 15, 2024

Conversation

mattgd
Copy link
Contributor

@mattgd mattgd commented Nov 14, 2024

Description

Add widgets client and get token API support.

Documentation

Does this require changes to the WorkOS Docs? E.g. the API Reference or code snippets need updates.

[ ] Yes

If yes, link a related docs PR and add a docs maintainer as a reviewer. Their approval is required.

@mattgd mattgd self-assigned this Nov 14, 2024
Copy link

linear bot commented Nov 14, 2024

@mattgd mattgd force-pushed the feature/auth-3897-go-sdk-support-for-widget-tokens branch from c0df1a6 to 22d3611 Compare November 14, 2024 20:21

## How it works

See the [Widgets integration guide](https://workos.com/docs/widgets/guide).
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This page doesn't exist yet and should be updated before merging.

@mattgd mattgd marked this pull request as ready for review November 14, 2024 20:22
@mattgd mattgd requested a review from a team as a code owner November 14, 2024 20:22
}

if c.Endpoint == "" {
c.Endpoint = "https://api.workos.com"
Copy link
Contributor

Choose a reason for hiding this comment

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

This should ideally be configurable. You can't currently change the API host in the golang SDK, but it's something we should add and that should reflect here too.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Great point. I also feel like it's less than ideal that we have to redefine this common client logic for every module. Wondering if it should be refactored into a shared module.

@mattgd mattgd merged commit b4635f7 into main Nov 15, 2024
2 checks passed
@mattgd mattgd deleted the feature/auth-3897-go-sdk-support-for-widget-tokens branch November 15, 2024 13:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants