Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OAuth2 #91

Open
juftin opened this issue Dec 12, 2023 · 1 comment
Open

OAuth2 #91

juftin opened this issue Dec 12, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@juftin
Copy link
Owner

juftin commented Dec 12, 2023

OAuth2 is coming

@github-actions github-actions bot added the triage This will looked at label Dec 12, 2023
@juftin
Copy link
Owner Author

juftin commented Dec 16, 2023

Replace this with authlib.integrations.httpx_client.OAuth2Client

class LunchMoneyClient(Client):
"""
API HTTP Client
"""
def __init__(self, access_token: str | None = None) -> None:
super().__init__()
api_headers = APIConfig.get_header(access_token=access_token)
self.headers.update(api_headers)

@juftin juftin added enhancement New feature or request and removed triage This will looked at labels Dec 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant