Skip to content

Conversation

@thinkjrs
Copy link
Member

This adds promoApiUrl to the getToken function signature so that users can add a root api url for customizability.

For example, users can now call the function as such.

const refreshToken = getToken(accessToken, 'https://feature.promo.api.tincre.dev');

@thinkjrs thinkjrs added the enhancement New feature or request label Aug 18, 2023
@thinkjrs thinkjrs self-assigned this Aug 18, 2023
@github-actions
Copy link

size-limit report 📦

Path Size
dist/promo-button-node.cjs.production.min.js 57.14 KB (+0.02% 🔺)
dist/promo-button-node.esm.js 57.23 KB (+0.05% 🔺)

@thinkjrs thinkjrs merged commit 4f531a2 into develop Aug 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant