Snazzah

Results 31 comments of Snazzah

Not sure how this isn't working, but I've mainly used Discord OAuth in development. Email has worked on instances before, just don't know why it doesn't work locally.

Huh weird, I've tested e-mail and Discord in my own environment and they work fine. What environment are you testing this on?

Did you guys fill in the `NEXTAUTH_SECRET`? That would also impact authentication. Also @himbolion the `APP_HOSTNAME` should've been the same domain as the admin instance (which is redundant from `NEXTAUTH_URL`...

Well the only thing I can think of is if there were errors while next-auth was handling authentication. Maybe the redirect URI was mistyped when using the Discord OAuth. Does...

Huh, I guess browser settings could impact it? I don't even know, I have the same environment variables and it works fine over localhost and on a separate server.

Yeah, that's the problem, the redirect URI port needs to be at `3000` since that's where the admin panel is at. You need to add `localhost:3000/api/auth/callback/discord` as a redirect URI...

Will refactor with the latest iteration later this weekend.

Sidenote: I removed `dynamicAvatarDecorationURL` from the User class since it seems that avatar decoration presets don't use size query strings

There could be an underlying issue when creating the SlashCreator in the first place. Assuming the project uses slash-create v5, there might've been an issue when loading commands. Not sure...

So this works okay locally but hangs for Heroku? I could try and add more debug statements on when the creator is made just in case. Do you know what...