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

Changing options of an active player / dynamically update ajax.contentUserDataUrl #159

Open
NamesMT opened this issue Nov 27, 2024 · 1 comment

Comments

@NamesMT
Copy link

NamesMT commented Nov 27, 2024

I encounter a breaking bug when trying to use h5p-standalone for an internal training platform.

The platform uses a client-stored, short-lived accessToken that is periodically refreshed on the client, and included in a query param for ajax.contentUserDataUrl.

On longer contents, ajax.contentUserDataUrl could not be updated to include the new token and thus the content no longer saves properly.

@NamesMT
Copy link
Author

NamesMT commented Nov 27, 2024

We can maybe support function type for ajax.contentUserDataUrl, that would solve the case quickly without complicated support for dynamic options update.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants