Portainer Stopped Working

As the title says Portainer was working using OAuth and has just stopped, when selecting oauth it just hangs and then say Unable to login via OAuth

Authentik Logs shows - Application authorized

Portainer Logs shows - OAuth, Authentication failure

I have recreated the Application and Provider in Authentik also Destroyed the Portainer container with all its persistent data and tried a clean config with Authentik provider details but no luck, where can I diagnose this better logs seem a little limited.