File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1515import requests
1616from authlib .common .security import generate_token
1717from authlib .integrations .requests_client import OAuth2Session
18- from authlib .jose import JsonWebKey , jwt as jose_jwt
18+ from authlib .jose import JsonWebKey
19+ from authlib .jose import jwt as jose_jwt
1920from authlib .oauth2 .rfc7636 import create_s256_code_challenge
2021
2122AUTH_CLIENT_ID = os .environ .get (
@@ -194,9 +195,7 @@ def get_access_token() -> str:
194195
195196 access_token = creds .get ("access_token" )
196197 if not access_token :
197- raise ValueError (
198- "No access token found. Please run `codecarbon login` first."
199- )
198+ raise ValueError ("No access token found. Please run `codecarbon login` first." )
200199
201200 # Fast path: token is still valid for the current OIDC provider
202201 if _validate_access_token (access_token ):
You can’t perform that action at this time.
0 commit comments