Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Loopback Client Side Authentication Check

Is there an out of the box way to do a client-side authentication check using the standard Loopback authentication/user model? I don't want to rely on the client side checks alone, but for something as simple as showing a "logout" button when a user is logged in it would be useful to check this on the client side.

I'm really looking to modify the DOM in Angular based on the response of an isAuthenticated function or something similar.

Thanks for any help.

like image 261
Nick Avatar asked Jul 20 '26 03:07

Nick


1 Answers

There is actually an isAuthenticated function in the Loopback Angular SDK. Referenced here: https://github.com/strongloop/loopback-sdk-angular/blob/fb161b7eaa02df877fe894daa54e4bd0fa4e041e/CHANGES.md

like image 149
Nick Avatar answered Jul 22 '26 18:07

Nick