From 81abe37a3115beeed1d155cfba3b237cc1d82d2b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A9sz=C3=A1ros=20Mih=C3=A1ly?= Date: Thu, 6 Apr 2017 14:46:04 +0200 Subject: [PATCH] add fn.fetch instead of native fetch --- src/core/plugins/auth/actions.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/plugins/auth/actions.js b/src/core/plugins/auth/actions.js index 57d84550..8e00d392 100644 --- a/src/core/plugins/auth/actions.js +++ b/src/core/plugins/auth/actions.js @@ -120,10 +120,10 @@ export const authorizePassword = ( auth ) => ( { fn, authActions, errActions } ) .catch(err => { errActions.newAuthErr( err ) }) } -export const authorizeOauth2Application = ( auth ) => ( { authActions, errActions } ) => { +export const authorizeOauth2Application = ( auth ) => ( { fn, authActions, errActions } ) => { let { schema, scopes, name, clientId, clientSecret } = auth - fetch(schema.get("tokenUrl"), { + fn.fetch(schema.get("tokenUrl"), { method: "post", headers: { "Accept":"application/json, text/plain, */*", "Content-Type": "application/x-www-form-urlencoded"