[Concept] Getting an user token
SolarID, Astroid's OAuth, service is a concept and maybe won't last. Altough you can learn how to optain a token here.
This page is only dedicated to developers who want to integrate SolarID in their app. For more information please contact us.
Getting a SolarID usertoken is relativeley easy. You can either sign up or login and go to the /me path. This will return your SolarID id and your SolarID token along with your username and connected services.
Example /signup
request
/signup
requestcurl --location --request GET "https://auth.astroid.cc/auth/signup"
Example /signup
response
/signup
response{
"message": "created solarid",
"solarid": "bb3ca..."
}
The token will be saved in an encrypted cookie called session
and cannot be read out directly.
To get your token you'd have to use the /me
path.
Example /me
request
/me
requestcurl --location --request GET "https://auth.astroid.cc/me"
Example /me
response
/me
response{
"services": {
"discord": "150543...",
"github": "142..."
},
"token": "u_Shd0qkf4LWk...",
"username": "some_username",
"solarid": "uao56w..."
}
Last updated
Was this helpful?