Skip to content

1.2.0

Latest
Compare
Choose a tag to compare
@MiraiSubject MiraiSubject released this 13 Apr 20:55
· 1 commit to master since this release
dee0345

Full Changelog: 1.1.1...1.2.0

  • Deprecate the type property in the StrategyOptions & StrategyOptionsWithRequest interfaces (will be removed in 6 months)
  • Add support for a custom profile url by setting userProfileUrl in the options 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);
});