Skip to content

feat(auth0-auth-js): add support for access token subject type to Token Vault - #43

Merged
frederikprijck merged 2 commits into
auth0:mainfrom
guabu:token-vault-at
Aug 13, 2025
Merged

feat(auth0-auth-js): add support for access token subject type to Token Vault#43
frederikprijck merged 2 commits into
auth0:mainfrom
guabu:token-vault-at

Conversation

@guabu

@guabu guabu commented Aug 13, 2025

Copy link
Copy Markdown
Contributor

Description

This PR adds support for the access token subject type to be exchanged for a connection token.

With this change, the getTokenForConnection method can accept either a refreshToken or an accessToken, but not both.

Testing

  • This change adds test coverage for new/changed/fixed functionality

Checklist

  • I have added documentation for new/changed functionality in this PR or in auth0.com/docs
  • All active GitHub checks for tests, formatting, and security are passing
  • The correct base branch is being used, if not the default branch

@frederikprijck frederikprijck changed the title feat: add support for access token subject type to Token Vault feat(auth0-auth-js): add support for access token subject type to Token Vault Aug 13, 2025
Comment thread packages/auth0-auth-js/EXAMPLES.md Outdated
```

- `refreshToken`: The refresh token to use to retrieve the access token.
- `accessToken`: The access token to use to retrieve the access token.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A bit confusing, can we rephrase it

Suggested change
- `accessToken`: The access token to use to retrieve the access token.
- `accessToken`: The access token to use to exchange for an access token for the connection.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perhaps we can also rephrase the line above, and the jsdocs?

@frederikprijck
frederikprijck merged commit df7ddb9 into auth0:main Aug 13, 2025
4 checks passed
@guabu
guabu deleted the token-vault-at branch August 13, 2025 13:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants