mirror of
https://github.com/pinry/pinry.git
synced 2026-01-10 09:12:07 +01:00
Fix: Should enable token auth in DRF
This commit is contained in:
@@ -164,4 +164,8 @@ REST_FRAMEWORK = {
|
||||
'URL_FIELD_NAME': DRF_URL_FIELD_NAME,
|
||||
'DEFAULT_PAGINATION_CLASS': 'rest_framework.pagination.LimitOffsetPagination',
|
||||
'PAGE_SIZE': API_LIMIT_PER_PAGE,
|
||||
'DEFAULT_AUTHENTICATION_CLASSES': [
|
||||
'rest_framework.authentication.TokenAuthentication',
|
||||
'rest_framework.authentication.SessionAuthentication',
|
||||
]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user