How to get external key other than INPUT from RESTFUL request?

Bbackbone3/13/2023
SSO callback my api like
api/trpc/user.login?token=abc
Nnlucas3/13/2023
Could you describe your problem in more depth?
Bbackbone3/13/2023
My company has a project (named center login system) just for user login and logout. I have to combine that to my project.
When my project's user login, it redirects to the login system page. Its backend would callback my tRPC func using get request (like the url api/trpc/user.login?token=abc ) , in purpose to tell me who is login.
Bbackbone3/13/2023
But tRPC url request like api/trpc/user.login?input=JSON.stringify(object).
In tRPC, I can't get query params but input
Nnlucas3/13/2023
Right, I think tRPC is a bad choice for this
Nnlucas3/13/2023
You’d be better off using express for the auth stuff and mount tRPC within express using the adapter for the business API
Bbackbone3/13/2023
Thank for your answer. I have solved this question.
I use tRPC context and inject req and res from expressjs.
Bbackbone3/14/2023
Link this question
tRPC doesn't support redirect. https://discord.com/channels/867764511159091230/1084901636146729020

The login system backend callback my url , I have to redirect to my front page in this url.
Bbackbone3/14/2023
If I just use expressjs to redirect. This is redundant.I have to develop in both expressjs and tRPC. One for redirect, one for my project code.
Nnlucas3/14/2023
It’s completely normal to separate your auth api and business api, but even more expected when you’re essentially implementing OpenId but want to use a non-http standard for the business api. OpenId is http oriented
Nnlucas3/14/2023
I’d just pick an OpenId provider like Auth0