basic-auth
basic-auth copied to clipboard
HttpBasicAuth is not defined
After successfully authenticating I get a Uncaught ReferenceError: HttpBasicAuth is not defined on my client console and it will not let me load any routes. I just copied and pasted the example from the readme and I am calling it from /routes.js. If I fail to authenticate, I get the plain text message 'unauthorized'
You should put the piece of code in server-side. It should be executed on client-site also. I got the same error first actually.
sos it should be in both the server and the client?
I think it should be only in the server-side.
+1