Sign In with Party Social
Get Started
Making a verified app requires Party Social Pro.
First, create an app at https://party-social.com/apps/create. After you can created the app, create a URL by clicking "Create URL," and select your redirect URL. The URL should look like this:
Design a Button to Sign in With Party Social. After the user signs in, they will be redirected to your URL with two parameters. One is the auth code and the other is state
, if set. The auth code can be used to get the user's display name, username, and profile picture.
Exchange Authorization Code for Access Token
POST
/token
Send a POST request to the token endpoint
Headers
Name | Value |
---|---|
Content-Type |
Body
Name | Value |
---|---|
code | |
client_id | |
client_secret | |
redirect_uri |
Response
Fetch User's Info
The auth code expires in 5 minutes.
GET
/auth/user
Get the user's info
Headers
Name | Value |
---|---|
Content-Type | |
Authorization | |
client_id |
Response
To make a custom client, you must use the CUSTOM TOKEN
to connect with Socket.io.
Example
Example
An example can be found on GitHub: https://github.com/PartySocial/oauth-example
Last updated