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

Usage example code for useRefresh doesn't work because of a comma #1765

Open
JuanTenorioCosta opened this issue Jun 19, 2024 · 0 comments
Open
Labels
documentation Improvements or additions to documentation

Comments

@JuanTenorioCosta
Copy link

A friend of mine started using this library and found a problem with the usage section on this URL: https://authkit.arkadip.dev/getting_started/refreshtoken/#usage

The comma in "interval" key - value pair in object is commented, so the object returns an error.

Actual code snippet:
const refresh = createRefresh({
interval: 10 // The time in sec to refresh the Access token,
refreshApiCallback: async (param) => {

Correct code snippet:
const refresh = createRefresh({
interval: 10, // The time in sec to refresh the Access token
refreshApiCallback: async (param) => {

@JuanTenorioCosta JuanTenorioCosta added the documentation Improvements or additions to documentation label Jun 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

1 participant