Skip to content

Commit

Permalink
feat: Add external_account_id to OAuth access token response (#274)
Browse files Browse the repository at this point in the history
  • Loading branch information
kostaspt committed Mar 12, 2024
1 parent 5fdd3a1 commit 59c1229
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
15 changes: 8 additions & 7 deletions clerk/users.go
Expand Up @@ -46,13 +46,14 @@ type User struct {
}

type UserOAuthAccessToken struct {
Object string `json:"object"`
Token string `json:"token"`
Provider string `json:"provider"`
PublicMetadata json.RawMessage `json:"public_metadata"`
Label *string `json:"label"`
Scopes []string `json:"scopes"`
TokenSecret *string `json:"token_secret"`
ExternalAccountID string `json:"external_account_id"`
Object string `json:"object"`
Token string `json:"token"`
Provider string `json:"provider"`
PublicMetadata json.RawMessage `json:"public_metadata"`
Label *string `json:"label"`
Scopes []string `json:"scopes"`
TokenSecret *string `json:"token_secret"`
}

type IdentificationLink struct {
Expand Down
1 change: 1 addition & 0 deletions clerk/users_test.go
Expand Up @@ -525,6 +525,7 @@ const dummyUserJson = `{

const dummyUserOAuthAccessTokensJson = `[
{
"external_account_id": "eac_2dYS7stz9bgxQsSRvNqEAHhuxvW",
"object": "oauth_access_token",
"token": "test_token",
"provider": "oauth_testProvider",
Expand Down

0 comments on commit 59c1229

Please sign in to comment.