Netrifier
BABetter Auth
•Created by Netrifier on 3/8/2025 in #bug-reports
Delete Verification value function
In state.ts in the better auth source code located at src/oauth2, in the parseState function if the verification value is expired, then it throws a "please_restart_the_process". but does not delete the verification value from the db as the delete verification db call is after the throw error statement which stops function execution.
Is this expected behaviour where the verification value is auto deleted afterwards if so how?
4 replies