sanity-io / sanity-plugin-mux-input

An input component that integrates Sanity Studio with MUX.com video encoding/hosting service.
https://mux.com
MIT License
45 stars 55 forks source link

Not able to "log out" from the plugin using the Access Tokens for client usage. #326

Closed musaa-muhsen closed 1 month ago

musaa-muhsen commented 8 months ago

Hello all. I'm having trouble trying to "log out" using the Access tokens because I need to use Mux with the client account instead now. I've tried deleting the npm package, changing the schema stuff name, clearing caches, and general Chrome memory but still shows the same instance. Any suggestions would be great thanks.

musaa-muhsen commented 8 months ago

I deleted the document 'secrets.mux' which seemed successful after deletion, but it is still not resetting the credentials for Mux.

hdoro commented 4 months ago

@musaa-muhsen I'm not sure I follow what the issue is: you need to reset the credentials you have in your Mux plugin? If so, you're correct, we store them in the secrets.mux document.

What exactly do you mean by resetting the credentials for Mux?

Rade58 commented 3 months ago

I made a mistake and deleted my access token? Is there a way to reenter credentials or to delete old ones which are not valid anymore? Should I delete this through groq?

edited: manged to do it with this command: pnpm exec sanity documents delete secrets.mux

hdoro commented 1 month ago

@Rade58 I've now added a note to the docs and a button to configure the plugin from the uploader / video input. Hopefully this won't be an issue for others in the future, thank you for reporting 🙏