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

[idea] Login via webview, then use cid session cookie as a token #2

Open
linuxct opened this issue Nov 24, 2024 · 0 comments
Open

[idea] Login via webview, then use cid session cookie as a token #2

linuxct opened this issue Nov 24, 2024 · 0 comments

Comments

@linuxct
Copy link

linuxct commented Nov 24, 2024

I recently discovered this project over at Mishaal Rahman's Telegram group. I noticed that the project currently lacks authenticated logins due to Monstercat adding reCaptcha to their website.

I was thinking that perhaps something we could do to allow us to login was to open https://monstercat.com/sign-in and ask to Sign in there using some WebView implementation, then retrieve from the WebView and safely store at rest (such as via Jetpack's EncryptedSharedPreferences) the cid session cookie, and use that to authenticate against Monstercat in order to retrieve our playlists. What do you think?

I have noticed this cid cookie lasts for ~1mo., and it doesn't get automatically refreshed when calling the API, which means there must be some endpoint which allows to refresh it when its close to expiration or after expiration. I am currently checking their website trying to understand if this is the case, but even in the worst case, we can handle that and ask the user to login again upon token expiration.

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

No branches or pull requests

1 participant