@@ -272,7 +272,7 @@ t.test('fastify-oauth2', t => {
272
272
scope : [ 'notifications' ]
273
273
} )
274
274
275
- fastify . get ( '/' , function ( request , reply ) {
275
+ fastify . get ( '/' , function ( request ) {
276
276
return this . githubOAuth2 . getAccessTokenFromAuthorizationCodeFlow ( request )
277
277
. then ( result => {
278
278
// attempts to refresh the token
@@ -350,7 +350,7 @@ t.test('fastify-oauth2', t => {
350
350
userAgent : 'test/1.2.3'
351
351
} )
352
352
353
- fastify . get ( '/' , function ( request , reply ) {
353
+ fastify . get ( '/' , function ( request ) {
354
354
return this . githubOAuth2 . getAccessTokenFromAuthorizationCodeFlow ( request )
355
355
. then ( result => {
356
356
// attempts to refresh the token
@@ -394,7 +394,7 @@ t.test('fastify-oauth2', t => {
394
394
userAgent : 'test/1.2.3'
395
395
} )
396
396
397
- fastify . get ( '/' , function ( request , reply ) {
397
+ fastify . get ( '/' , function ( request ) {
398
398
return this . githubOAuth2 . getAccessTokenFromAuthorizationCodeFlow ( request )
399
399
. then ( result => {
400
400
// attempts to refresh the token
@@ -433,7 +433,7 @@ t.test('fastify-oauth2', t => {
433
433
userAgent : false
434
434
} )
435
435
436
- fastify . get ( '/' , function ( request , reply ) {
436
+ fastify . get ( '/' , function ( request ) {
437
437
return this . githubOAuth2 . getAccessTokenFromAuthorizationCodeFlow ( request )
438
438
. then ( result => {
439
439
// attempts to refresh the token
@@ -2602,7 +2602,7 @@ t.test('options.generateStateFunction', t => {
2602
2602
auth : fastifyOauth2 . GITHUB_CONFIGURATION
2603
2603
} ,
2604
2604
callbackUri : '/callback' ,
2605
- generateStateFunction : function ( request ) {
2605
+ generateStateFunction : function ( ) {
2606
2606
return Promise . reject ( new Error ( 'generate state failed' ) )
2607
2607
} ,
2608
2608
checkStateFunction : ( ) => true ,
@@ -2644,7 +2644,7 @@ t.test('options.generateStateFunction', t => {
2644
2644
} ,
2645
2645
callbackUri : '/callback' ,
2646
2646
startRedirectPath : '/gh' ,
2647
- generateStateFunction : function ( request ) {
2647
+ generateStateFunction : function ( ) {
2648
2648
return Promise . reject ( new Error ( 'generate state failed' ) )
2649
2649
} ,
2650
2650
checkStateFunction : ( ) => true ,
@@ -2716,7 +2716,7 @@ t.test('options.checkStateFunction', t => {
2716
2716
scope : [ 'notifications' ]
2717
2717
} )
2718
2718
2719
- fastify . get ( '/' , function ( request , reply ) {
2719
+ fastify . get ( '/' , function ( request ) {
2720
2720
return this . githubOAuth2 . getAccessTokenFromAuthorizationCodeFlow ( request )
2721
2721
. then ( result => {
2722
2722
// attempts to refresh the token
@@ -2760,7 +2760,7 @@ t.test('options.checkStateFunction', t => {
2760
2760
scope : [ 'notifications' ]
2761
2761
} )
2762
2762
2763
- fastify . get ( '/' , function ( request , reply ) {
2763
+ fastify . get ( '/' , function ( request ) {
2764
2764
return this . githubOAuth2 . getAccessTokenFromAuthorizationCodeFlow ( request )
2765
2765
. then ( result => {
2766
2766
// attempts to refresh the token
@@ -2804,7 +2804,7 @@ t.test('options.checkStateFunction', t => {
2804
2804
scope : [ 'notifications' ]
2805
2805
} )
2806
2806
2807
- fastify . get ( '/' , function ( request , reply ) {
2807
+ fastify . get ( '/' , function ( request ) {
2808
2808
return this . githubOAuth2 . getAccessTokenFromAuthorizationCodeFlow ( request )
2809
2809
. then ( result => {
2810
2810
// attempts to refresh the token
0 commit comments