If a particular method is not needed, you may implement it with an empty body. For example, if your application
is a pure stateless RESTful application, you would only need to implement [[yii\web\IdentityInterface::findIdentityByAccessToken()|findIdentityByAccessToken()]]
and [[yii\web\IdentityInterface::getId()|getId()]] while leaving all other methods with an empty body.
and [[yii\web\IdentityInterface::getId()|getId()]] while leaving all other methods with an empty body. Or if your
application uses session only authentication, you would need to implement all the methods except