OAuth flow

check req.query.code is defined or return an errror