From 2f97ca173eb2233e744ad986e7b77aabbc2507be Mon Sep 17 00:00:00 2001 From: st4lk Date: Fri, 4 Dec 2015 20:51:00 +0300 Subject: [PATCH] fix example project not to collide tokens --- example_project/templates/home_jwt.html | 2 ++ 1 file changed, 2 insertions(+) diff --git a/example_project/templates/home_jwt.html b/example_project/templates/home_jwt.html index b3a76dd..a618f52 100644 --- a/example_project/templates/home_jwt.html +++ b/example_project/templates/home_jwt.html @@ -2,6 +2,7 @@ {% load staticfiles %} {% block content %} +

Note! djangorestframework-jwt must be installed for this method

@@ -82,6 +83,7 @@

Raw JWT payload

url: "{% url 'login_social_jwt_user' provider='twitter' %}", }); $authProvider.authToken = 'JWT'; + $authProvider.tokenPrefix = 'satellizer_jwt'; // to not collide with regular token auth }).controller('LoginJWTCtrl', function($scope, $auth, $http) { self = this;