This repository has been archived by the owner on Sep 26, 2024. It is now read-only.
Full Changelog: 1.1.1...1.2.0
- Deprecate the
type
property in theStrategyOptions
&StrategyOptionsWithRequest
interfaces (will be removed in 6 months) - Add support for a custom profile url by setting
userProfileUrl
in theoptions
parameter. Example:
const strat: OsuStrategy = new OsuStrategy({
clientID,
clientSecret,
// If you want to read a specific mode from the user instead of
// the default game mode, change this to match the appropriate game mode
userProfileUrl: 'https://osu.ppy.sh/api/v2/me/osu',
callbackURL: callbackUrl
}, (_accessToken: string, _refreshToken: string, profile: any, cb: any) => {
console.log(profile);
return cb(null, profile);
});