Rest API Authentication without user access token

Hi,
I want to implement bearer token on my API. I’ve followed the guide and it works but I 'm just wondering if there is a way to use the bearer token without the user table, just comparing the token with a variable.

Thanks.

Yes. https://www.yiiframework.com/doc/api/2.0/yii-web-identityinterface#findIdentityByAccessToken()-detail could be implemented to use a simple array if needed.

I could finally do it. Thanks.