-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* refactor: remove global role * refactor(auth): replace old auth method * feat(auth): service auth * feat(routers/auth): protect signup method * feat(routers/auth): new 'current' endpoint * fix: fix auth dependency * refactor: change auth status * test(auth): test refresh and current user * feat(routers/auth): refresh tokens * refactor: change auth/current by users/current * refactor: change response and requests types arch. * ci: add concurency * ci: fix concurency * test * ci: concurency works * test: change variables namings * fix: pylint * refactor: refactor types folder * refactor: imports
- Loading branch information
Showing
12 changed files
with
52 additions
and
70 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,9 @@ | ||
from . import ( | ||
auth, | ||
common, | ||
user, | ||
domain, | ||
requests, | ||
responses | ||
) | ||
|
||
from . import types | ||
from .requests import RQ | ||
from .responses import RS | ||
|
||
__all__ = [ | ||
"auth", | ||
"user", | ||
"domain", | ||
"common", | ||
"requests", | ||
"responses" | ||
"types", | ||
"RQ", | ||
"RS" | ||
] |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
import re | ||
from pydantic import AfterValidator | ||
|
||
|
||
def _is_email(email: str) -> str: | ||
pattern = r"^[a-zA-Z0-9_\.]+@[a-zA-Z0-9_\.]+\.[a-z]{2,5}" | ||
assert re.fullmatch(pattern, email) is not None, f"String {email} is not a valid email" | ||
return email | ||
is_email = AfterValidator(_is_email) | ||
import re | ||
from pydantic import AfterValidator | ||
|
||
|
||
def _is_email(email: str) -> str: | ||
pattern = r"^[a-zA-Z0-9_\.]+@[a-zA-Z0-9_\.]+\.[a-z]{2,5}" | ||
assert re.fullmatch(pattern, email) is not None, f"String {email} is not a valid email" | ||
return email | ||
is_email = AfterValidator(_is_email) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters