This endpoint is used as a callback URL for GitHub OAuth2.0 authentication. It is called by GitHub after the user has successfully authenticated with GitHub.
See GitHub OAuth2.0 documentation for more information.
code: The authorization code returned by GitHub after the user has successfully authenticated with GitHub.
None
None
{
"success": true,
"message": "Login successful"
}Example:
| Code | Description |
|---|---|
| 200 | Success |
| 201 | Created |
| 400 | Bad Request |
| 500 | Internal Server Error. |
token(optional): The JWT token that is used to authenticate the user. This cookie is only set if the user successfully authenticated with GitHub.