Replacement methode for currentSession()

62 views Asked by At

Is there a replacement for the currentSession() method that can already be used? I noticed that this method is deprecated after v11.

All the examples in the docs still use the currentSession() methode. Ex.: http://doc.wakanda.org/home2.en.html#/Global-Application/Application/getSession.301-1089198.en.html

1

There are 1 answers

1
Yann On BEST ANSWER

And there will be removed in v2.x. These two global APIs are now available in the directory object since v1.1.0.

directory.currentSession
directory.currentUser

Source : Wakanda API Reference