Fix build with TOKEN_ONLY_AUTH

It was broken by commit 6ff38d80053e469ee0a5d11498555d5a2fd913c0