Meteor Apollo generate authorization token

Hello, I can not find meteor apollo documentation

I want to generate authorization token manually from

import { MeteorAccountsLink, getUser } from 'meteor/apollo'

if I use MeteorAccountLink, it will generate token automatically when user login

but in my case, I want to generate authorization manually that works for internal web app and external app

so getUser(req.headers.authorization) will works for that two conditions

how to do that?

You have to do that on the server. You basically have to implement a login logic yourself on the server. meteor/apollo basically just read the login token on the client and pass it to the request header. It uses it on the server to get the user.