modifications to TokensResource to return userId