Skip to content

SSO getProfile API returning code expired error #1087

@sampadab-verneek

Description

@sampadab-verneek

Whether you call the workos.sso.getProfileAndToken api with the code returned to the redirect url or the workos.sso.getProfile api with the accessToken after calling the workos.userManagement.authenticateWithCode with the same code that did not work before, you get

The code has expired or invalid

error. The same code works with the authenticateWithCode api, but does not work for the getProfile apis

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions