Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
}
const strategyOptions2: StrategyOptionsWithRequest = {
authorizationURL: 'http://www.example.com/auth',
callbackURL: 'http://www.example.com/callback',
clientID: 'dummy',
clientSecret: 'secret',
tokenURL: 'http://www.example.com/token',
passReqToCallback: true
};
const strategy3: PassportStrategy = new OAuth2Strategy(strategyOptions2, verifyFunction3);
const strategy4: Strategy = new Strategy(strategyOptions2, verifyFunction4);
const err1 = new AuthorizationError('Description', 'invalid_request', undefined);
const err2 = new TokenError(undefined, 'invalid_request', undefined);
const err3 = new InternalOAuthError('Hello', {});