title: Yii2 Rest Api User bearer Authentication expiration time
body: <p>i am currently working on a yii2 based Rest api. i use bearer token for user authentication.let me explain the requirement. </p>
  
  <p>1)first user authenticated from a external php application using their credentials. </p>
  
  <p>2)he/she got an access Token.</p>
  
  <p>3)each subsequent request is made using this access token.</p>
  
  <pre><code>public static function findIdentityByAccessToken($token, $type = null)
  {
      return static::findOne(['auth_key' =&gt; $token]);
  }
  </code></pre>
  
  <p>this is where i start thinking.  i do not found any expiration time for the access token. is that really needed? if yes how can i archive that? Thanks in advance.</p>