---
title: Methods
slug: methods
docTags: 
createdAt: 2020-06-10T09:33:31.000Z
---

- $pinc.auth.signOut

## signout

Call this method when you want to sign out of the currently logged in provider. Internally this process revokes the privilege and clears any information about the cached session. Once SignedOut the callback in [data-on-logged-out](docId\:E2ZqvjgkdAfqzLqHZ2Su1) is invoked.



**Example**

```javascript

//uses JQuery
$("signout-button").on("click",$pinc.auth.signout)

//_onLoggedOut is linked through the script data-on-logged-out attribute
function _onLoggedOut(){
    //possibly redirect to login page...
}

```



**Related**

- [Script data attributes for $pinc.auth module](https://docs.pathfix.com/dollarpincauth)
- [$pinc.auth.profile Global Variable](https://docs.pathfix.com/properties)





