File tree Expand file tree Collapse file tree 3 files changed +7
-8
lines changed
authentication-client/src Expand file tree Collapse file tree 3 files changed +7
-8
lines changed Original file line number Diff line number Diff line change 11import { NotAuthenticated , FeathersError } from '@feathersjs/errors' ;
2- import { Application } from '@feathersjs/feathers' ;
2+ import { Application , Params } from '@feathersjs/feathers' ;
33import { AuthenticationRequest , AuthenticationResult } from '@feathersjs/authentication' ;
44import { Storage , StorageWrapper } from './storage' ;
55
@@ -149,12 +149,12 @@ export class AuthenticationClient {
149149 return authPromise ;
150150 }
151151
152- authenticate ( authentication : AuthenticationRequest ) : Promise < AuthenticationResult > {
152+ authenticate ( authentication : AuthenticationRequest , params ?: Params ) : Promise < AuthenticationResult > {
153153 if ( ! authentication ) {
154154 return this . reAuthenticate ( ) ;
155155 }
156156
157- const promise = this . service . create ( authentication )
157+ const promise = this . service . create ( authentication , params )
158158 . then ( ( authResult : AuthenticationResult ) => {
159159 const { accessToken } = authResult ;
160160
Original file line number Diff line number Diff line change @@ -6,7 +6,6 @@ declare const configurePrimus: FeathersPrimus;
66export = configurePrimus ;
77
88interface FeathersPrimus {
9- ( options : any , callback ?: ( primus : any ) => void ) : ( ) => void ;
10- readonly SOCKET_KEY : unique symbol ;
9+ ( options ?: any , callback ?: ( primus : any ) => void ) : ( app : any ) => void ;
1110 default : FeathersPrimus ;
1211}
Original file line number Diff line number Diff line change @@ -5,8 +5,8 @@ declare const socketio: FeathersSocketIO;
55export = socketio ;
66
77interface FeathersSocketIO {
8- ( callback ?: ( io : io . Server ) => void ) : ( ) => void ;
9- ( options : number | io . ServerOptions , callback ?: ( io : io . Server ) => void ) : ( ) => void ;
10- ( port : number , options ?: io . ServerOptions , callback ?: ( io : io . Server ) => void ) : ( ) => void ;
8+ ( callback ?: ( io : io . Server ) => void ) : ( app : any ) => void ;
9+ ( options : number | io . ServerOptions , callback ?: ( io : io . Server ) => void ) : ( app : any ) => void ;
10+ ( port : number , options ?: io . ServerOptions , callback ?: ( io : io . Server ) => void ) : ( app : any ) => void ;
1111 default : FeathersSocketIO ;
1212}
You can’t perform that action at this time.
0 commit comments