Custom Login page blink

Hello,
I’m using this example:
https://developer.okta.com/code/react/okta_react/

and having the following issue:

I have change the following code from :

.then(res => this.setState({
  sessionToken: res.sessionToken
}))

to:

       .then(res => {
          debugger
          
          return this.setState({
            octaSessionToken: res.sessionToken
          })
        })

for some reason, the debugger is never hit

also I get false for this after redirected back from Okta
const authenticated = await this.props.auth.isAuthenticated()
thanks