i am trying to implement google auth and i seem to missunderstand the auth flow , i looked through every sub and post allready and tried all the fixes there but nothing seems to work , i dont exectly understand how the controller is supposed to be structured. the error i keep getting is The oauth state was missing or invalid. (also using react for front end). these are the middlewares . added all the relevent code sorry for the amount of images.
tried removing/adding the callbackpath, tried using token id sent from front end and validate that(had cors issues all the time) , serched for best practices and got the the current code (yes alot of it is gpt as i couldnt manage on my own but gpt also couldnt so hoping someone would be able to help.
expectation: logging in with google and staying authenticated for an x period of time.