Meteor Password Protect Full Application

Can I password protect my entire Meteor app, something like "htaccess" in PHP?

For example: I do not want the public to have access to my site, but the client wants to see it.

+6
source share
1 answer

I donโ€™t understand what is the answer. The first hit by Google. https://github.com/Jabbslad/basic-auth

EDIT:

Actually very simple.

Add a package.

meteor add jabbslad:basic-auth 

add this code to serveride code

 var basicAuth = new HttpBasicAuth("guest", "password"); basicAuth.protect(); 

In the repository, you can find several readme.md parameters

+8
source

Source: https://habr.com/ru/post/989550/


All Articles