Skip to content
This repository has been archived by the owner on Apr 4, 2022. It is now read-only.

Implement a check to see if a username and token belong together #11

Open
driesvints opened this issue Aug 21, 2021 · 0 comments
Open
Labels
enhancement New feature or request

Comments

@driesvints
Copy link
Owner

driesvints commented Aug 21, 2021

For our Sponsorable trait we offer to set a GitHub username and token on the implementing class. But we don't actually check if the user or the token belong together. It would be good if we offered a way to users to do this or to either do this ourselves in the library before making API requests.

The way we could check this is to auth the client with the token and retrieve the user details, then check if the username is the same as the one set on the object.

@driesvints driesvints added the enhancement New feature or request label Aug 21, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant