Login widget social login reactjs sessionToken: res.session.token

Dear Team,

In the following example: https://developer.okta.com/code/react/okta_react_sign-in_widget

within the Login.js example code line:

  onSuccess(res) {
    if (res.status === 'SUCCESS') {
      return this.props.auth.redirect({
        sessionToken: res.session.token
      });
   } else {

the sessionToken: res.session.token may I think is correctly is:

sessionToken: res.idToken

after this modification the login procedura work fine.

Thank you!