workos-node icon indicating copy to clipboard operation
workos-node copied to clipboard

`getUserIdentities` returns incorrect GitHubOAuth string

Open TylerJang27 opened this issue 10 months ago • 0 comments

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.

TylerJang27 avatar Feb 28 '25 23:02 TylerJang27