Hi all,
I am using the self hosted Okta Widget. I also have a custom auth server created along with an inline token hook assigned. The flow seems to be all working well but one thing I noticed is no state is being passed in the payload Okta is sending to the hook.
Here is roughly what I’m doing in the code:
const signIn = new OktaSignIn({state: 'test-state', /*...other-settings **/})
signIn
.showSignInToGetTokens()
.then(function(tokens) {
// read tokens
})
I was expecting the state to be passed as part of the payload to the hook as documented here but this doesn’t seem to be the case.
It’s likely something I’m doing wrong so some guidance would be great. How can I pass state to the inline token hook when using the Okta sign in widget?