bhubr / react-simple-oauth2-login

Simple React component for OAuth2 login - Supports Authorization Code and Implicit Grant flows.
MIT License
49 stars 31 forks source link

Add the ability to supply a custom render function #17

Closed rsnyman closed 3 years ago

rsnyman commented 3 years ago

An application I'm working needs to render custom components, so this PR implements an optional custom render function.

BTW, I added a test, but I could never get the tests to run, there were numerous errors outside of the actual tests.

rsnyman commented 3 years ago

@bhubr Sorry I didn't get back to this sooner, I didn't see your replies till today! I've fixed the issues you requested and pushed up a new version.

bhubr commented 3 years ago

Thanks for your work, merging it right now!

bhubr commented 3 years ago

@rsnyman I forgot to suggest updating the version number, so I'll do it myself, and mention you in the contributors in the readme (and republish the package on npm)

rsnyman commented 3 years ago

Thank you!