Skip to content

Commit

Permalink
Expose validate function from py library (#18)
Browse files Browse the repository at this point in the history
  • Loading branch information
andrew-propelauth committed Mar 29, 2024
1 parent d5f7043 commit a46259c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions propelauth_fastapi/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@ def _handle_forbidden_exception(e: ForbiddenException, debug_mode: bool):
"require_org_member_with_exact_role",
"require_org_member_with_permission",
"require_org_member_with_all_permissions",
"validate_access_token_and_get_user",
"fetch_user_metadata_by_user_id",
"fetch_user_metadata_by_email",
"fetch_user_metadata_by_username",
Expand Down Expand Up @@ -201,6 +202,7 @@ def init_auth(
require_org_member_with_all_permissions=_require_org_member_with_all_permissions_wrapper(
auth, debug_mode
),
validate_access_token_and_get_user=auth.validate_access_token_and_get_user,
fetch_user_metadata_by_user_id=auth.fetch_user_metadata_by_user_id,
fetch_user_metadata_by_email=auth.fetch_user_metadata_by_email,
fetch_user_metadata_by_username=auth.fetch_user_metadata_by_username,
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

setup(
name="propelauth-fastapi",
version="2.1.11",
version="2.1.12",
description="A FastAPI library for managing authentication, backed by PropelAuth",
long_description=README,
long_description_content_type="text/markdown",
Expand Down

0 comments on commit a46259c

Please sign in to comment.