Unknown realm [myRealm]. null returned for key: isUserAuthenticated

两盒软妹~` 提交于 2019-12-04 21:13:14

Did you first call to WL.Client.updateUserInfo();?

From the documentation:

updateUserInfo(options)

This method refreshes user data after an exception. Use this method when the application receives an exception after calling the invokeProcedure() method. The method refreshes the data for the following methods:

WL.Client.getUserName(realm)
WL.Client.getLoginName(realm)
WL.Client.isUserAuthenticated(realm)

After such an exception, you can verify the user authentication status by calling this function first, and then the isUserAuthenticated() method.

Parameters: options - Optional. A standard options object.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!