minor
remove unneeded code from oauth2 middleware