Skip to content
This repository has been archived by the owner on Nov 25, 2020. It is now read-only.

Commit

Permalink
fix(authService): allow object passed as second arg to authService.lo…
Browse files Browse the repository at this point in the history
…gin()

modified the type of the second argument to allow string or object as the first argument to the login function does
  • Loading branch information
MartinMason committed Nov 22, 2016
1 parent 0699230 commit da294c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/authService.js
Original file line number Diff line number Diff line change
Expand Up @@ -437,7 +437,7 @@ export class AuthService {
*
* @return {Promise<Object>|Promise<Error>} Server response as Object
*/
login(emailOrCredentials: string|{}, passwordOrOptions?: string, optionsOrRedirectUri?: {}, redirectUri?: string): Promise<any> {
login(emailOrCredentials: string|{}, passwordOrOptions?: string|{}, optionsOrRedirectUri?: {}, redirectUri?: string): Promise<any> {
let normalized = {};

if (typeof emailOrCredentials === 'object') {
Expand Down

0 comments on commit da294c4

Please sign in to comment.