-
Notifications
You must be signed in to change notification settings - Fork 632
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Uniformize token retrieval/validation #837
Comments
I can surely refactor and deprecate one of them. Let me check the code and come up with something. |
@adrinjalali Correct me if I'm wrong.
|
This is what Another option is to call a modified This means moving WDYT? |
@adrinjalali no I meant we normally call OR your suggestion can be having |
Yep, your latter suggestion is exactly what I was thinking. |
Token retrieval has been refactored in #1064 with in particular a |
Right now there is
HfApi._validate_or_retrieve_token()
andHfFolder.get_token()
and they're used in different places. We should have a single place where we deal with tokens.ref: #792 (comment)
cc @merveenoyan maybe?
The text was updated successfully, but these errors were encountered: