Oauth rest
im passing the accessToken from oauth in as the token here and im getting this error
what am i doing wrong here?
im using next auth to get the users access token
7 Replies
- What's your exact discord.js
npm list discord.js
and node node -v
version?
- Not a discord.js issue? Check out #other-js-ts.
- Consider reading #how-to-get-help to improve your question!
- Explain what exactly your issue is.
- Post the full error stack trace, not just the top part!
- Show your code!
- Issue solved? Press the button!
not sure how to tell if its an invalid token. every time i relog its the same
i get the session and then pass the token in like this
correct. looks similar to this but its not
vOKASD977CHasjJDu7eqweneqeIUAc3
bruh how lol. its literally defined
![No description](https://cdn.answeroverflow.com/1193088218778832916/image.png)
No, i dont see why it wouldnt tho
right now its just localhost:3000/dashboard/guilds
im using next.js 14. app router.
app/dashboard/guilds/page.jsx
just simple stuff to test. no styling
uh that would just be signing out and back in yeah?
i just figured out next auth today so im just using the default
/api/auth/signout
/api/auth/signin to handle logging in and out
session is null when i logout so 🤷♂️
honestly just about to give up lmao. this shit is so frustratingim pretty sure the prefix is supposed to be Basic?
rest | RESTOptions
Options to be passed when creating the REST instance
no im good on that part