Authorization code

Hello Experts, We are trying to implement MS teams application in our app. We want to capture authorization code when user logs in. How can we do this?   Thanks in Advance.
1 answers

one solution could be 

  1. after login generate or get the url for authorization
  2. use nanoflow and launch that URL
  3. using deeplink module keep listening on redirect URI
  4. Parse the response using import mapping and store/use auth code