Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or 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
| #!/usr/bin/env python | |
| # | |
| # Electrum - lightweight Bitcoin client | |
| # Copyright (C) 2011 thomasv@gitorious | |
| # | |
| # This program is free software: you can redistribute it and/or modify | |
| # it under the terms of the GNU General Public License as published by | |
| # the Free Software Foundation, either version 3 of the License, or | |
| # (at your option) any later version. | |
| # |
This file contains hidden or 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
| from functools import wraps | |
| from async_fastapi_jwt_auth import AuthJWT | |
| from fastapi import Depends, Request, status | |
| from fastapi.security import HTTPBearer | |
| from sqlalchemy.ext.asyncio import AsyncSession | |
| from db.db import get_session | |
| from helpers.auth_request import AuthRequest | |
| from helpers.exceptions import AuthException |