Issue with Meteor.loginWithToken

Generated a user login token in my main application and implemented an API call to a new REST API application. Received this token on the REST application but when I try to implement the login with token functionality using this token I’m getting an error. It’s showing as Meteor.loginWithToken is not a function.

Where are you calling it? Meteor.loginWithToken is a client side function