Bugfixes

Forgot to pass in endpoint name when checking for access tokens.