Skip to content
This repository has been archived by the owner on Sep 15, 2022. It is now read-only.

How the Payload will get converted in the JWT Token ? #175

Closed
ganeshkaspate opened this issue Jun 4, 2018 · 1 comment
Closed

How the Payload will get converted in the JWT Token ? #175

ganeshkaspate opened this issue Jun 4, 2018 · 1 comment
Labels
closed:stale Issue or PR has not seen activity recently

Comments

@ganeshkaspate
Copy link

Hi, I am new to this . I have used following code for the interceptors

**jwtOptionsProvider.config({
tokenGetter: function() {
return localStorage.getItem("AuthToken");
},
});

    $httpProvider.interceptors.push('jwtInterceptor');** 

With this code I am able to send that authorization bearer token in every request . But,

For some requests I have a payload to send back-end. So, the request is like

**addTodata: function (ontologyName, currentNode, orphan, type) {
var config = {};
config.headers = {
"Content-Type": "application/json",

                };
                var jsonData = {
                    "ontologyName": ontologyName,
                    "orphanName": orphan,
                    "orphanType": type
                };
                return $http.put('abc/pqr/' + currentNode.name, jsonData, config)
                    .then(function (success) {
                        return success;
                    },
                    function (error) {
                        $log.error(error);
                        return $q.reject(error);
                    });
            },**

Now, When this request goes that time the authorization token goes but jsonData is not getting in the JWT token. It is still going as a Request Payload . How will it get converted in the JWT

@stale
Copy link

stale bot commented Oct 26, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If you have not received a response for our team (apologies for the delay) and this is still a blocker, please reply with additional information or just a ping. Thank you for your contribution! 🙇‍♂️

@stale stale bot added the closed:stale Issue or PR has not seen activity recently label Oct 26, 2019
@stale stale bot closed this as completed Nov 2, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
closed:stale Issue or PR has not seen activity recently
Projects
None yet
Development

No branches or pull requests

1 participant