Skip to content

Commit

Permalink
fix example project not to collide tokens
Browse files Browse the repository at this point in the history
  • Loading branch information
st4lk committed Dec 4, 2015
1 parent df4a0cc commit 2f97ca1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions example_project/templates/home_jwt.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
{% load staticfiles %}

{% block content %}
<h3>Note! <a href="http://getblimp.github.io/django-rest-framework-jwt/">djangorestframework-jwt</a> must be installed for this method</h3>
<div ng-app="JWTApp">
<div ng-controller="LoginJWTCtrl as ctrl">
<div>
Expand Down Expand Up @@ -82,6 +83,7 @@ <h2>Raw JWT payload</h2>
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;

Expand Down

0 comments on commit 2f97ca1

Please sign in to comment.