Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- HTTP.post(`${api}/token`, {
- params: {
- grant_type: 'password',
- client_id: 'some_id',
- client_sectet: 'some_secret',
- username: 'username',
- password: 'password'
- }
- }, (e, r) => {
- if (e) {
- console.error(e);
- } else {
- console.log(r);
- }
- });
- POST http://.../token 400 (Bad Request)
- Error: failed [400] {"error":"invalid_request","error_description":"The grant type was not specified in the request"}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement