Skip to content

Commit

Permalink
Feat: simple jwt를 이용한 로그인 기능 구현 #3
Browse files Browse the repository at this point in the history
Related to #3
  • Loading branch information
JaeHyuckSa committed Nov 9, 2023
1 parent 788ee86 commit b318d56
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 28 deletions.
6 changes: 0 additions & 6 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,6 @@ repos:
hooks:
- id: isort
args: ['--profile', 'black', '--filter-files', 'true']
# mypy
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v0.940
hooks:
- id: mypy
args: ['--config', 'mypy.ini', 'budget_management/']

default_language_version:
python: python3.11
3 changes: 3 additions & 0 deletions budget_management/users/urls.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
from django.urls import path
from rest_framework_simplejwt.views import TokenObtainPairView, TokenRefreshView

from budget_management.users.views import SignupView

urlpatterns = [
path("signup", SignupView.as_view(), name="signup"),
path("token", TokenObtainPairView.as_view(), name="token_obtain_pair"),
path("token/refresh", TokenRefreshView.as_view(), name="token_refresh"),
]
2 changes: 1 addition & 1 deletion config/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@
# Default primary key field type
DEFAULT_AUTO_FIELD = "django.db.models.BigAutoField"

# AUTH_USER_MODEL = "users.User"
AUTH_USER_MODEL = "users.User"

# Swagger settings
SWAGGER_SETTINGS = {"SECURITY_DEFINITIONS": {"Bearer": {"type": "apiKey", "name": "Authorization", "in": "header"}}}
Expand Down
42 changes: 21 additions & 21 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit b318d56

Please sign in to comment.