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 1
1
import { NotAuthenticated , FeathersError } from '@feathersjs/errors' ;
2
- import { Application } from '@feathersjs/feathers' ;
2
+ import { Application , Params } from '@feathersjs/feathers' ;
3
3
import { AuthenticationRequest , AuthenticationResult } from '@feathersjs/authentication' ;
4
4
import { Storage , StorageWrapper } from './storage' ;
5
5
@@ -149,12 +149,12 @@ export class AuthenticationClient {
149
149
return authPromise ;
150
150
}
151
151
152
- authenticate ( authentication : AuthenticationRequest ) : Promise < AuthenticationResult > {
152
+ authenticate ( authentication : AuthenticationRequest , params ?: Params ) : Promise < AuthenticationResult > {
153
153
if ( ! authentication ) {
154
154
return this . reAuthenticate ( ) ;
155
155
}
156
156
157
- const promise = this . service . create ( authentication )
157
+ const promise = this . service . create ( authentication , params )
158
158
. then ( ( authResult : AuthenticationResult ) => {
159
159
const { accessToken } = authResult ;
160
160
Original file line number Diff line number Diff line change @@ -6,7 +6,6 @@ declare const configurePrimus: FeathersPrimus;
6
6
export = configurePrimus ;
7
7
8
8
interface 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 ;
11
10
default : FeathersPrimus ;
12
11
}
Original file line number Diff line number Diff line change @@ -5,8 +5,8 @@ declare const socketio: FeathersSocketIO;
5
5
export = socketio ;
6
6
7
7
interface 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 ;
11
11
default : FeathersSocketIO ;
12
12
}
You can’t perform that action at this time.
0 commit comments