Skip to content

Update Email Verification methods #251

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

Conversation

jonatascastro12
Copy link
Contributor

@jonatascastro12 jonatascastro12 commented Sep 4, 2023

Description

  • CreateEmailVerificationChallenge -> SendVerificationEmail
  • CompleteEmailVerificationChallenge -> VerifyEmailCode

Response of both methods is changed to UserResponse which contains a nested User

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.

@jonatascastro12 jonatascastro12 requested a review from a team as a code owner September 4, 2023 20:39
@linear
Copy link

linear bot commented Sep 4, 2023

@jonatascastro12 jonatascastro12 changed the title Update EmailVerification methods Update Email Verification methods Sep 4, 2023
@jonatascastro12
Copy link
Contributor Author

jonatascastro12 commented Sep 4, 2023

type CompleteEmailVerificationOpts struct {
type VerifyEmailCodeOpts struct {
// The unique ID of the User whose code will be verified.
User string
// The verification token emailed to the user.
Copy link
Contributor

Choose a reason for hiding this comment

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

small nit but probably should change comments to reflect this too

@jonatascastro12 jonatascastro12 merged commit f04ba34 into main Sep 8, 2023
@jonatascastro12 jonatascastro12 deleted the feature/usrld-1047-update-verifiyemailcode-endpoint-to-handle-nested-user branch September 8, 2023 14:04
@jonatascastro12 jonatascastro12 mentioned this pull request Sep 14, 2023
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