1. Home
  2. Docs
  3. UniREST Solution 3.5
  4. UniREST Client
  5. Token Manager

Token Manager

In the UniREST System, a user account has 3 Tokens: the Read Token, the Write Token and the Login Token. Every time the user logins, the 3 Tokens strings are regenerated. So, they change every time the user starts a new login session.

However, the UniRESTClient class has various Login methods, and in some specific situations, the 3 Tokens are generated only once, at the first user logins.

MethodThe 3 Tokens are generated…
UniRESTClient.Async.Login()…every user’s login.
UniRESTClient.Async.WPLogin()…every user’s login.
UniRESTClient.Async.ApplicationLogin()…at the first user’s login only.
UniRESTClient.Async.AutoLogin()…every user’s login.
UniRESTClient.Async.ReLogin()…every user’s login.

Without any kind of intervention or control from the developer, the Tokens are just strings saved in the database users table and have no effect on the UniREST System.

To take control of the Tokens and take advantage of their functionalities, you have to use the UniRESTClient.Async.TokenManager class, which exposes various management methods.


Articles