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

Arctic Examples: Discord Does not allow "activities.read" scope for OAuth flow #264

Open
uerkw opened this issue Feb 2, 2025 · 1 comment

Comments

@uerkw
Copy link

uerkw commented Feb 2, 2025

On the Discord example for Arctic, it suggests providing the following scopes:

const scopes = ["email", "activities.read"];

However, using the activities.read scope in the OAuth flow will always return an "Invalid Scopes" error in the callback URL.

Reading the relevant Discord Documentation, we can see that for activities.read : "allows your app to fetch data from a user's "Now Playing/Recently Played" list — not currently available for apps". While it is currently not allowed for "apps" with OAuth, I don't believe this scope is necessarily used by Arctic or Lucia for anything, and my application works with using just the identify scope to grab the discord ID and username of the client that is logging in.

@pilcrowonpaper
Copy link
Owner

The example is just an example, not a recommendation. It's just intended to show how scopes are passed to Arctic.

I'm not exactly sure what "not currently available for apps" means but it seems your app needs to be whitelisted by Discord to use it? (discord/discord-api-docs#1178)

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