Calling workos.userManagement.getUserIdentities() can return an identity including:
{ "idpId": "########", "type": "OAuth", "provider": "GithubOAuth" },
The Typescript type is "AppleOAuth" | "GoogleOAuth" | "GitHubOAuth" | "MicrosoftOAuth" (note the case difference).
Subsequently, calling workos.userManagement.getAuthorizationUrl with the returned provider then fails, because it is expecting a GitHubOAuth provider.
Calling
workos.userManagement.getUserIdentities()can return an identity including:{ "idpId": "########", "type": "OAuth", "provider": "GithubOAuth" },The Typescript type is
"AppleOAuth" | "GoogleOAuth" | "GitHubOAuth" | "MicrosoftOAuth"(note the case difference).Subsequently, calling
workos.userManagement.getAuthorizationUrlwith the returned provider then fails, because it is expecting aGitHubOAuthprovider.