I am trying to make a login with roblox feature however my token request is always resolving a code 400, the client id and secret should be correct I’ve checked them and this is my request using js and axios
const result = await axios.post("https://apis.roblox.com/oauth/v1/token", {
client_id: server.config.security.roblox.clientID,
client_secret: server.config.security.roblox.secret,
code: code,
grant_type: "authorization_code",
}, {
headers: {
'Content-Type': 'application/x-www-form-urlencoded'
}
})
Could I just be insane and “grant_type” is something else, I don’t know the documentation isnt very clear.