@@ -272,7 +272,7 @@ t.test('fastify-oauth2', t => {
272272 scope : [ 'notifications' ]
273273 } )
274274
275- fastify . get ( '/' , function ( request , reply ) {
275+ fastify . get ( '/' , function ( request ) {
276276 return this . githubOAuth2 . getAccessTokenFromAuthorizationCodeFlow ( request )
277277 . then ( result => {
278278 // attempts to refresh the token
@@ -350,7 +350,7 @@ t.test('fastify-oauth2', t => {
350350 userAgent : 'test/1.2.3'
351351 } )
352352
353- fastify . get ( '/' , function ( request , reply ) {
353+ fastify . get ( '/' , function ( request ) {
354354 return this . githubOAuth2 . getAccessTokenFromAuthorizationCodeFlow ( request )
355355 . then ( result => {
356356 // attempts to refresh the token
@@ -394,7 +394,7 @@ t.test('fastify-oauth2', t => {
394394 userAgent : 'test/1.2.3'
395395 } )
396396
397- fastify . get ( '/' , function ( request , reply ) {
397+ fastify . get ( '/' , function ( request ) {
398398 return this . githubOAuth2 . getAccessTokenFromAuthorizationCodeFlow ( request )
399399 . then ( result => {
400400 // attempts to refresh the token
@@ -433,7 +433,7 @@ t.test('fastify-oauth2', t => {
433433 userAgent : false
434434 } )
435435
436- fastify . get ( '/' , function ( request , reply ) {
436+ fastify . get ( '/' , function ( request ) {
437437 return this . githubOAuth2 . getAccessTokenFromAuthorizationCodeFlow ( request )
438438 . then ( result => {
439439 // attempts to refresh the token
@@ -2602,7 +2602,7 @@ t.test('options.generateStateFunction', t => {
26022602 auth : fastifyOauth2 . GITHUB_CONFIGURATION
26032603 } ,
26042604 callbackUri : '/callback' ,
2605- generateStateFunction : function ( request ) {
2605+ generateStateFunction : function ( ) {
26062606 return Promise . reject ( new Error ( 'generate state failed' ) )
26072607 } ,
26082608 checkStateFunction : ( ) => true ,
@@ -2644,7 +2644,7 @@ t.test('options.generateStateFunction', t => {
26442644 } ,
26452645 callbackUri : '/callback' ,
26462646 startRedirectPath : '/gh' ,
2647- generateStateFunction : function ( request ) {
2647+ generateStateFunction : function ( ) {
26482648 return Promise . reject ( new Error ( 'generate state failed' ) )
26492649 } ,
26502650 checkStateFunction : ( ) => true ,
@@ -2716,7 +2716,7 @@ t.test('options.checkStateFunction', t => {
27162716 scope : [ 'notifications' ]
27172717 } )
27182718
2719- fastify . get ( '/' , function ( request , reply ) {
2719+ fastify . get ( '/' , function ( request ) {
27202720 return this . githubOAuth2 . getAccessTokenFromAuthorizationCodeFlow ( request )
27212721 . then ( result => {
27222722 // attempts to refresh the token
@@ -2760,7 +2760,7 @@ t.test('options.checkStateFunction', t => {
27602760 scope : [ 'notifications' ]
27612761 } )
27622762
2763- fastify . get ( '/' , function ( request , reply ) {
2763+ fastify . get ( '/' , function ( request ) {
27642764 return this . githubOAuth2 . getAccessTokenFromAuthorizationCodeFlow ( request )
27652765 . then ( result => {
27662766 // attempts to refresh the token
@@ -2804,7 +2804,7 @@ t.test('options.checkStateFunction', t => {
28042804 scope : [ 'notifications' ]
28052805 } )
28062806
2807- fastify . get ( '/' , function ( request , reply ) {
2807+ fastify . get ( '/' , function ( request ) {
28082808 return this . githubOAuth2 . getAccessTokenFromAuthorizationCodeFlow ( request )
28092809 . then ( result => {
28102810 // attempts to refresh the token
0 commit comments