Comments (2)
My apologies, our documentation was out of date. I just pushed the latest docs, which you can read for the logout directive here (you may have to force-reload the page):
http://docs.stormpath.com/angularjs/sdk/#/api/stormpath.spLogout:spLogout
The logout directive will only delete the authentication cookies. You need to listen for this event and then tell your application what it should do after logout. In this example, we send the user back to the login view state:
$rootScope.$on('$sessionEnd',function () {
$state.transitionTo('login');
});
Please let me know if this helps.
from stormpath-sdk-angularjs.
Yes, it's working fine.
Thank you so much 👍
from stormpath-sdk-angularjs.
Related Issues (20)
- Add user management example
- Request for npm support HOT 3
- Add focus to fields in login, registration and forgot password forms HOT 1
- Release 1.1.0 not available on GitHub or Bower HOT 1
- sp-social-login directive expects itself to be in an ng-repeat scope within sp-login-form
- Update TROUBLESHOOTING.md
- Add support for data.authorities as alternative to sp.authorize.group
- Support for multi-group access control? HOT 2
- Detecting groups through a service HOT 1
- defaultPostLoginState not always first call after login HOT 3
- Is $auth.endSession() compatible with ID Site?
- Dependency issue when using UI-Router 0.3 HOT 5
- Please add docs for how to use Social Login V2
- Please add docs for how to do email verification in the getting started
- Please provide status on Angular 2 integration HOT 3
- Mention and link to Angular SDK in README
- Npm module not installing - Sinopia has been shut down HOT 1
- UI-Router ^1.0.0 deprecates state change events and breaks state config 'authenticate' property handling. HOT 1
- IE11: $isCurrentDomain returns false for https domains
- Problem with refresh_token request
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from stormpath-sdk-angularjs.