luceos Hi Luceos, thanks for your quick reply.
I also notice that in the newest version of flarum, flarum/core/src/Forum/Controller/AuthenticateUserTrait.php is removed, as well as some other files such as flarum/core/src/Api/Command/GenerateAccessToken.php.
Also database table access_tokens is changed(column created_at and expires_at is replaced). May I know why, and if I'd like to use AuthenticateUserTrait, which new class should I use?