Skip to content
Advertisement

How can I set the scope to a http request in my app?

I would like to know how to set the scope to a http request in my Ionic App. We are using Hapi Framework for the Backend built with Node.JS. I’m working with a team so I don’t have enough knowledge on the server side since I’m working on the Ionic App.

Also, I’m setting a Bearer Token to the request header which is working fine. Below is my code.

Ionic App Http Request:

JavaScript

Node.JS Route Fragment:

JavaScript

This is the error code I’m getting:

JavaScript

I know the error is because I’m setting the scope the wrong way.

Advertisement

Answer

This is something that has to be set in the Bearer token, on the server side, not on the mobile one.

Advertisement