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