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

Is there a way to construct an Osu with an existing Access Token? #39

Open
424ever opened this issue Nov 9, 2024 · 1 comment
Open

Comments

@424ever
Copy link

424ever commented Nov 9, 2024

I'd like to use this in an environment, where I already have a valid Access Token associated with a user. Is it possible to use this Token directly?

@MaxOhn
Copy link
Owner

MaxOhn commented Nov 9, 2024

Currently rosu-v2 doesn't provide a way to do this. Does seem like a decent use-case so I'll look into adding it when I have time 👍

I imagine I can add a method like OsuBuilder::with_token(access_token: String, expires_in: i64, refresh_token: String) and refresh it whenever needed. Maybe even make the refreshing optional.

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

2 participants