title: actions_intent_SIGN_IN not triggered for successful sign in implicit flow account linking
body: <p>I am not able to get the  actions_intent_SIGN_IN triggered once a successful implicit authorization is done.
  I do have a welcome Intent and sign.in intent mapped as </p>
  
  <pre><code>actionMap.set('input.welcome', DefaultWelcomeIntent);
  actionMap.set('sign.in', signIn);
  </code></pre>
  
  <p>and the respective methods are </p>
  
  <pre><code>   function DefaultWelcomeIntent() {
      app.askForSignIn();
  }
  
  function signIn(app) {
      if (app.getSignInStatus() === app.SignInStatus.OK) {
          let accessToken = app.getUser().accessToken;
          app.ask('Great, thanks for signing in!');
      } else {
          app.ask('I won\'t be able to save your data, but let\'s continue!');
      }
  }
  </code></pre>
  
  <p>In the dialog flow, I do have the DefaultWelcome Intent and a follow up intent for the welcome intent. The followup intent has the Events defined as 'actions_intent_SIGN_IN' and action as 'sign.in' . 'Enable Webhook call for this intent' is checked  .</p>
  
  <p>The implicit configuration is as follows in the Account Linking in Actions in Google :</p>
  
  <ol>
  <li>Grant Type: Implicit </li>
  <li>ClientID : Hello123ClientID</li>
  <li>AuthorizationURL-  <a href="https://XXXX.ngrok.io/auth" rel="nofollow noreferrer">https://XXXX.ngrok.io/auth</a> </li>
  <li>scopes: email</li>
  </ol>
  
  <p>authorization endpoint is </p>
  
  <pre><code>app.get('/auth', (req, res) =&gt; {
  
      var clientID = Hello123ClientID
      var redirectURL = 'https://oauth-redirect.googleusercontent.com/r/sampleproject'
      var projectID = 'sampleproject'
      var ACCESS_TOKEN = 'SampleTokenXXXXXX'
      var STATE_STRING;
  
      if (req.query.client_id) {
          if (req.query.client_id != clientID) {
              res.status(503).send("Incorrect ClientID");
          }
      }
      if (req.query.redirect_uri) {
          if (req.query.redirect_uri != redirectURL) {
              res.status(503).send("Incorrect Re-directURL")
          }
      }
      if (req.query.response_type) {
          if (req.query.response_type != 'token') {
              res.status(503).send("Incorrect Response_type")
          }
      }
  
      if (req.query.state) {
          STATE_STRING = req.query.state
      }
      var responseoAuthURL ;
      responseoAuthURL = 'https://oauth-redirect.googleusercontent.com/r/' + projectID + '#access_token=' + ACCESS_TOKEN + '&amp;token_type=bearer&amp;state=' + STATE_STRING
      res.redirect(responseoAuthURL)
   });
  </code></pre>
  
  <p><strong><em>What is not working</em></strong> </p>
  
  <p>Once I invoke the welcome intent in mobile , it asks me that the account is not linked and whether I want to link. 
  On sending yes, browser is opened and redirects to the auth end point, validates and redirects to the above url and is returned to the app.</p>
  
  <p>I am not getting the event actions_intent_SIGN_IN triggered and method signIn() is not getting called. Not sure what the reason is. </p>
  
  <p>Also fallback intent was removed  and I created a new intent with the action as 'sign.in' and Events as 'actions_intent_SIGN_IN'. and the webhook checked.In this case also the intent method signIn() was not triggered.</p>
  
  <p><strong><em>What works :</em></strong></p>
  
  <p>I tested the askForPermission , and the same scenario works for me . Once I give permission , the intent with event actions_intent_PERMISSION is getting triggered and respective methods are called.</p>
  
  <p>This sign in workflow  was working for me couple of days before but not I am not able to get it work.Not sure what is happening. Any suggestions would be of great help for me. I used assistant in iphone </p>