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

Invitation token on authenticate_with_code #337

Open
xantrac opened this issue Dec 22, 2024 · 2 comments
Open

Invitation token on authenticate_with_code #337

xantrac opened this issue Dec 22, 2024 · 2 comments

Comments

@xantrac
Copy link

xantrac commented Dec 22, 2024

Hello,

looks like authenticate_with_code https://workos.com/docs/reference/user-management/authentication/code API supports an invitation_token to authenticate and accept an invitation in one pass.

But the current sdk doesn't supports it https://github.com/workos/workos-ruby/blob/main/lib/workos/user_management.rb#L312

Also there isn't any implementation to accept an invitation, https://github.com/search?q=repo%3Aworkos%2Fworkos-ruby%20accept_&type=code

How currently people is handly accept an invite in Ruby?

@xantrac
Copy link
Author

xantrac commented Dec 22, 2024

this is returned when I tried to implement the attribute myself

WorkOS::UnprocessableEntityError (Status 422, `invite_token` cannot be specified for an AuthKit authorization code. - request ID: 4c8df857-2567-4a10-861d-f7d3ffd5077e):

@semanticart
Copy link

@xantrac Maybe the problem is a typo? The error complains about invite_token when the docs specify invitation_token

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants