Fixed #57: now refresh jwt token on page refresh

This commit is contained in:
Eliot Berriot 2017-12-26 14:47:27 +01:00
parent 8fa7330602
commit f1557ac4b9
No known key found for this signature in database
GPG key ID: DD6965E2476E5C27
4 changed files with 53 additions and 4 deletions

View file

@ -46,9 +46,8 @@ v1_patterns += [
include(
('funkwhale_api.users.api_urls', 'users'),
namespace='users')),
url(r'^token/',
jwt_views.obtain_jwt_token),
url(r'^token/refresh/', jwt_views.refresh_jwt_token),
url(r'^token/$', jwt_views.obtain_jwt_token, name='token'),
url(r'^token/refresh/$', jwt_views.refresh_jwt_token, name='token_refresh'),
]
urlpatterns = [