IBM Worklight v5.0.5 > API reference > IBM Worklight client-side API > JavaScript client-side APIWL.Client.isUserAuthenticated
Check whether the user is authenticated in a specified resource realm, or in the resource realm assigned to the application when it was deployed.
WL.Client.isUserAuthenticated(realm)
Parameter Description realm Optional. The name of a realm name defined in authenticationConfig.xml. If no value is specified, the method uses the resource realm assigned to the application when it was deployed.
Return Values
- true if the user is authenticated in the realm
- false otherwise
Parent JavaScript client-side API