Skip to content

Basic test to limit Meteor logins to 1x desktop, 1x mobile, 1x tablet

Notifications You must be signed in to change notification settings

jamiecollinson/meteor-limit-concurrent-logins

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Meteor limit concurrent logins

This is a simple test to limit the number of logins a single user account can make.

Each time a login happens we stamp that resume token according to the device type as detected by bowser from the user-agent string, and we revoke all other tokens for that user with the same device type.

Meteor reactively watches the login tokens and automatically logs out any session which loses it's token.

Usage

Install Meteor, check out this repo then npm install && npm start

Warnings

This uses the private Accounts._getLoginToken method, which could presumably change in the future.

About

Basic test to limit Meteor logins to 1x desktop, 1x mobile, 1x tablet

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published