I have set up an ionic app with login/logout services. App login is successful. I am able to map the user _id and sessionToken to my user model on my login page. When I add a logout button to the login page, I can successfully logout. But I want to add a logout button on another page in the app. However, that page does not have access to the sessionToken. Logout is therefore not successful.
How do I access the sessionToken (or any item in my user model for that matter) on another page? I understand that scope variables assigned on the index page are globally available, but the user _id and sessionToken are returned on the login page.
Thanks!