https://www.ory.sh/ logo
#talk-kratos
Title
# talk-kratos
s

stocky-yak-60074

05/08/2022, 8:54 AM
Hello, I am having an issue getting TOTP to work in my application. I have enabled it in the config:
Copy code
selfservice:
  methods:
    totp:
      enabled: true
      config:
        issuer: myapp
And the app is rendering out the QR code. I scan this with Google Authentication and can see the TOTP. When I enter this into the verify code field it returns one of two possible errors, seemingly randomly.
The provided authentication code is invalid, please try again.
Could not find a strategy to update your settings. Did you fill out the form correctly?
Is there any other config I am missing?
j

jolly-jelly-9637

05/08/2022, 10:07 AM
Could not find a strategy to update your settings. Did you fill out the form correctly?
This is usually an indicator that the form indeed hasn’t been submitted correctly. Can you show us how you are submitting it?
s

stocky-yak-60074

05/08/2022, 1:29 PM
my app code is based on the example https://github.com/ory/kratos-selfservice-ui-react-nextjs/blob/master/pages/settings.tsx This repo exhibits the same behaviour which made me think it was a configuration issue with my kratos instance.
I think this may have partially been down to clock skew. I am running windows with docker desktop. After restarting docker desktop and wsl I was able to link the TOTP authenticator.
17 Views