You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You can also modify the `isUserEligible` function to customise it according to your needs. The function just has to return a boolean for the condition where a user is eligible.
94
+
95
+
The default implementation that we use for verification on the osu! Tournament Hub:
**Note: By default the `OsuUser` in the parameter uses their favourite game mode.**
99
+
100
+
To modify it to use your desired game mode `./apps/webstack/src/routes/auth/osu/callback/+server.ts`[this file](https://github.com/MiraiSubject/cosette-lite/blob/master/apps/webstack/src/routes/auth/osu/callback/%2Bserver.ts) to match the game mode.
101
+
102
+
Currently the valid modes according to the current osu! [API documentation](https://osu.ppy.sh/docs/index.html#gamemode) are:
103
+
-`fruits` for osu!catch
104
+
-`mania` for osu!mania
105
+
-`osu` for osu!standard
106
+
-`taiko` for osu!taiko
107
+
108
+
Here is how you would modify the function to get the user's data for the appropriate game mode:
0 commit comments