fix eslint errors

This commit is contained in:
Anna Bodnia
2017-04-27 19:01:27 +03:00
parent d013e7a05c
commit 87a23c7c9e
5 changed files with 8 additions and 8 deletions

View File

@@ -68,7 +68,7 @@ export function authorizeOauth2(payload) {
}
}
export const authorizePassword = ( auth ) => ( { fn, authActions, errActions } ) => {
export const authorizePassword = ( auth ) => ( { authActions } ) => {
let { schema, name, username, password, passwordType, clientId, clientSecret } = auth
let form = {
grant_type: "password",
@@ -92,7 +92,7 @@ export const authorizePassword = ( auth ) => ( { fn, authActions, errActions } )
return authActions.authorizeRequest({ body: buildFormData(form), url: schema.get("tokenUrl"), name, headers, query, auth})
}
export const authorizeApplication = ( auth ) => ( { fn, authActions, errActions } ) => {
export const authorizeApplication = ( auth ) => ( { authActions } ) => {
let { schema, scopes, name, clientId, clientSecret } = auth
let form = {
grant_type: "client_credentials",
@@ -104,7 +104,7 @@ export const authorizeApplication = ( auth ) => ( { fn, authActions, errActions
return authActions.authorizeRequest({body: buildFormData(form), name, url: schema.get("tokenUrl"), auth })
}
export const authorizeAccessCode = ( auth ) => ( { fn, authActions } ) => {
export const authorizeAccessCode = ( auth ) => ( { authActions } ) => {
let { schema, name, clientId, clientSecret } = auth
let form = {
grant_type: "authorization_code",