The MicrosoftStrategy class overrides the userProfile method of the OAuth2Strategy class in such a way that the extraParams argument is ignored.
While this argument is not used in this implementation, removing it means that any subclasses of MicrosoftStrategy won't be able to leverage this second argument, which may be necessary in cases where the id_token needs to be read.
The
MicrosoftStrategy
class overrides theuserProfile
method of theOAuth2Strategy
class in such a way that theextraParams
argument is ignored.While this argument is not used in this implementation, removing it means that any subclasses of
MicrosoftStrategy
won't be able to leverage this second argument, which may be necessary in cases where the id_token needs to be read.