muxinc / strapi-plugin-mux-video-uploader

A Strapi plugin for managing uploads to Mux.
https://mux.com
23 stars 16 forks source link

Error while changing settings (keys and secrets) #3

Closed brnkmnn closed 3 years ago

brnkmnn commented 3 years ago

While setting the 3 settings there is an error: [2020-11-10T18:02:11.052Z] debug GET /mux-video-uploader/mux-settings (1 ms) 401 [2020-11-10T18:02:27.691Z] debug POST /mux-video-uploader/mux-settings (1 ms) 401 I have the public rights set for muxwebhookhandler.

brnkmnn commented 3 years ago

Update: In admin/src/services/strapi/index.ts the jwt token is retrieved from the session storage. But it is NOT in the session storage, but in the local storage. Manually copying the token to the session storage aswell solves the problem for now, but only for my computer and session.

erikpena commented 3 years ago

Hey @brnkmnn, Thanks for the sleuthing. I didn't realize that the JWT could be stored in local storage. Let me speak with the Strapi team to see if there is a better method for obtaining this.

erikpena commented 3 years ago

Just updated to v1.1.1 which includes this fix.