Log Out User

To end a users session so that the user is required to reauthorize when logging back in, the access token their session was assigned must be invalidated. This can be accomplished by passing that access token back to the /logout endpoint.

Request

End Point

Method:GET
URI:https://oauth.launchkey.com/logout

Require Parameters

access_token:Access token for user's session that you want to invalidate

Optional Parameters

close:If true, page will try to close after logout is complete (meant for a logout popup window); default is false
redirect:URL of page user is redirected to after logout; must be at your domain

Example

GET https://oauth.launchkey.com/logout?access_token=ACCESS_TOKEN&redirect=true HTTP/1.1
host: oauth.launchkey.com

Response

The response will be an 302 status code with a location header for the redirect.

Example

HTTP/1.1 302 Found
...
Location: https://launchkey.com/

User Contributed

LaunchKey links to user contributed code as a resource to its community. LaunchKey does not in any way guarantee or warrant the quality and security of these code bases. User contributed code is supported by the creators. If you do find a link from the site to user contributed code that is malicious or inappropriate in any way, please report that link to LaunchKey immediately and we will investigate the claim. Submit any issue to LaunchKey support at https://launchkey.com./support. ×