Custom Auth Resource token

I have set up a custom auth resource and I have a variable to store the token value. Custom auth seems to work fine as it generates the token. I am trying to use this resource and make subsequent API calls using the token value. However, I cant seem to reference the variable from the app using the resource.