|
|
|
@ -8,7 +8,7 @@ export const login = ({ username, password }) => |
|
|
|
method: 'POST', |
|
|
|
url: '/connect/token', |
|
|
|
headers: { 'Content-Type': 'application/x-www-form-urlencoded' }, |
|
|
|
data: `grant_type=password&scope=${oAuthConfig.scope}&username=${username}&password=${password}&client_id=${oAuthConfig.clientId}&client_secret=${oAuthConfig.clientSecret}`, |
|
|
|
data: `grant_type=password&scope=${oAuthConfig.scope}&username=${username}&password=${password}&client_id=${oAuthConfig.clientId}`, |
|
|
|
baseURL: oAuthConfig.issuer, |
|
|
|
}).then(({ data }) => data); |
|
|
|
|
|
|
|
|