basic-auth icon indicating copy to clipboard operation
basic-auth copied to clipboard

HttpBasicAuth is not defined

Open alexdmejias opened this issue 10 years ago • 4 comments

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'

alexdmejias avatar Jul 22 '15 14:07 alexdmejias

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.

kouohhashi avatar Aug 19 '15 01:08 kouohhashi

sos it should be in both the server and the client?

alexdmejias avatar Aug 19 '15 02:08 alexdmejias

I think it should be only in the server-side.

kouohhashi avatar Aug 19 '15 04:08 kouohhashi

+1

ryuken avatar Mar 04 '16 15:03 ryuken