In this section, you will learn some of the following aspects in relation with acquiring access token from the authorization server.
- Acquire access token from the auth server: Pay attention to login(login: Login) function which invokes /oauth/token API on authorization server. Notice the parameters passed using URLSearchParams object. These parameters are username and password (login credentials entered by the user), grant_type and client_id. Parameter grant_type is set as password. This represents the grant type such as Resource owner password credentials grant. The resource owner password credentials grant type is suitable in cases where the resource owner has a trust relationship with the client, such as the device ...