Skip to content

Commit

Permalink
implemented missed methods
Browse files Browse the repository at this point in the history
  • Loading branch information
Ubuntu committed Sep 17, 2020
1 parent 5ea91a8 commit 3daf34c
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/index.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions dist/twitch-strategy.d.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { Request } from "express";
import OAuth2Strategy from "passport-oauth2";
interface Options {
clientID: string;
Expand Down Expand Up @@ -54,6 +55,7 @@ export declare class Strategy extends OAuth2Strategy {
* @api protected
*/
userProfile(accessToken: string, done: (err?: Error | null, profile?: any) => void): Promise<void>;
authenticate(req: Request, args?: any): void;
/**
* Return extra parameters to be included in the authorization request.
* @param {{ forceVerify?: boolean }} options
Expand Down
5 changes: 5 additions & 0 deletions src/twitch-strategy.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { Request } from "express";
import fetch from "node-fetch";
import OAuth2Strategy from "passport-oauth2";

Expand Down Expand Up @@ -87,6 +88,10 @@ export class Strategy extends OAuth2Strategy {
});
}

authenticate(req: Request, args?: any): void {
super.authenticate(req, args);
}

/**
* Return extra parameters to be included in the authorization request.
* @param {{ forceVerify?: boolean }} options
Expand Down

0 comments on commit 3daf34c

Please sign in to comment.