fix(oauth): validate that redirect param exists.

Fixes #1786