Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/update get token for custom api urls #9

Merged
merged 2 commits into from
Aug 18, 2023

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
7 checks passed
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