wohali / oauth2-discord-new

New Discord Provider for the OAuth 2.0 Client
MIT License
118 stars 22 forks source link

Example Documentation Required #19

Closed Scribblets closed 5 years ago

Scribblets commented 5 years ago

It's been a while since I've needed to implement an oauth login. It would be better if there was an example of working code, more than what's been provided, or some explanations of what it's doing. I'm assuming somethings aren't configured properly on my end, but I have no idea why - for example, there's no example of a button to "login" with. Thanks for this!

wohali commented 5 years ago

I'm afraid that would be very client application specific...

Try reading the documentation here, this is just one library for that system (that handles Discord specifically). Does that help?

See this issue for instance.

Scribblets commented 5 years ago

A little - I have a button right now, and when I click on the button, I want it to open the Discord OAuth window. I can't seem to get that working, for some reason, and I have no idea why. I saw earlier that someone had the same issue, but they figured it out without posting the solution! lol - So my apologies for posting a similar repeat question. :(

Edit: To add, I'm only seeing the "Main screen turned on" (no oauth popup) - I added my client ID and secret - I added a redirectURI to a different page just to see if it's working or not. I'm not sure why nothing is happening.

Scribblets commented 5 years ago

Well, somehow I managed to get it working! =) Not sure what I did, lol.

wohali commented 5 years ago

Congrats! If you figure it out, please update this ticket so future devs can learn from your work. :+1: