Follow-up from "WIP: Add factory function"
The following discussion from !269 (merged) should be addressed:
-
@nkprince007 started a discussion: Consider this possible case. You have a GitLabOAuthToken and a GitLabPrivateToken in the wallet, but only the GitLabPrivateToken corresponds to the repository URL provided. But since you only check for GitLabOAuthToken first, it will get stored in
tokenand the repository object is wrapped. Finally, the resultant object won't be usable. How would you plan to mitigate this problem?