-
-
Save fatosmorina/1a5f4438ccd5fd57b6af3d60720e45dc to your computer and use it in GitHub Desktop.
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
def get_user(): | |
pass | |
def redirect_to_sign_in_page(): | |
pass | |
def filter(is_authenticated: bool): | |
if is_authenticated: | |
get_user() | |
else: | |
redirect_to_sign_in_page() | |
filter(is_authenticated=True) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment