How to add "users" to your bot?

That is the part when my brain is breaking down haha

I’ve made a bot (which is an app technically) but act like a user and has the same auth code flow as a user. I’ve already implemented the OAuth Authorization code flow but with this GET http call (from the bot) but I get redirected and can not grab the access_token which is in url and it’s not in response body.

So I guess I have to

  1. make a front-end
  2. auth the user from the front-end with OAuth authorization code flow (wich is a HTTP GET call) and get redirected to the front-end (I do not know how to grab the token from url in the backend otherwise…).
  3. The user click to a basic button to add the bot to his channel, making a call to my backend /join.
  4. On the join I send this specific token generated by the user in the front to the back-end (bot) and create a client with this token for each user who is signing ?

Okay I won’t use this anymore, thank you