Creates a guest account for non-logged in users
- Run
meteor add anthonyastige-auto-guest
- Add
AutoGuest.go([callback])
to your code to be called once from the client - Optional: Cleanup the UI
- Option1: Override of
accounts-ui-unstyled
withanthonyastige-auto-guest-accounts-ui-unstyled
cd ~
(Or wherever you want to put this)git clone [email protected]:AnthonyAstige/auto-guest-accounts-ui-unstyled.git
cd ~/myProject/packages
(Get into your project's packages folder)ln -s ~/auto-guest-accounts-ui-unstyled accounts-ui-unstyled
- Option2: Twitter bootstrap replacing
accounts-ui
with bootstrap forkauto-guest-meteor-accounts-ui-bootstrap-3
meteor remove accounts-ui
meteor add anthonyastige:auto-guest-meteor-accounts-ui-bootstrap-3
- Follow instructions from [anthonyastige:auto-guest-meteor-accounts-ui-bootstrap-3] ( https://github.com/AnthonyAstige/auto-guest-meteor-accounts-ui-bootstrap-3) (Note: Instructions not updated to new fork name as it's a quick fork)
- Option1: Override of
Whenever the current session has no user, create and log into a guest account.
- New visitors
- When logged out
The optional callback method is called whenever a new guest user is created.
Makes {{> loginButtons}} work for guest users (emulates logged out state, updates ratehr than creates, ....)
Since this is over-riding a package and not using the standard versioning system, you'll have to manually update your clone.
This package has not been tested in all cases facebook/google/etc logins, etc. Though I expect it to be fairly easy to modify and I welcome pull requests.