What are essential packages to write an oauth2 client package?

i’ve found this repo as a oauth service and it works fine.

https://github.com/FrankHassanabad/Oauth2orizeRecipes

but for client i want to use react.

to make a custom Meteor.loginWithCustomOAuth2, what are essential packages?

service-configuration?
oauth?
oauth2?