How to tell if a user is logged in? | Support | Support

Support Forum

If you want to show a shortcode in forum post - use [ instead of [ as you write it so you can see the shortcode 😉

We use and recommend UK2 for hosting - get a month free

Avatar

Please consider registering
guest

sp_LogInOut Log In sp_Registration Register

Register | Lost password?
Advanced Search

— Forum Scope —




— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

sp_Feed Topic RSS sp_TopicIcon
How to tell if a user is logged in?
4th October 2020
10:03 am
Avatar
Playas de Rosarito, Baja California, Mexico
Member
Members
Forum Posts: 153
Member Since:
9th July 2019
sp_UserOfflineSmall Offline

Is there a way that we can utilize Javascript to know if the user is logged in on the app?

4th October 2020
1:42 pm
Avatar
Admin
Forum Posts: 942
Member Since:
4th March 2015
sp_UserOfflineSmall Offline

If the local storage token is set

window.localStorage.getItem('token');

If you are finding the plugin useful, please subscribe to the app - it's free for your congregation to use and only £9.99pm for a church subscription - free int'l bank transfers with Revolut

5th October 2020
12:35 am
Avatar
Playas de Rosarito, Baja California, Mexico
Member
Members
Forum Posts: 153
Member Since:
9th July 2019
sp_UserOfflineSmall Offline

Thank you again. It was just what i needed.

Forum Timezone: Europe/London

Most Users Ever Online: 101

Currently Online:
2 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

Pastor Andres: 153

Rich Cox: 97

David Z.: 84

rrfranks: 69

seanmcint: 54

Allen: 51

Jon: 46

Gavin: 41

Nathan Booth: 36

Janeen: 23

Member Stats:

Guest Posters: 45

Members: 425

Moderators: 0

Admins: 1

Forum Stats:

Groups: 5

Forums: 14

Topics: 620

Posts: 2322

Administrators: andymoyle: 942