Fix to make implicit authorization flow to work

Currently implicit authorization can not be fully tested using the client as it is referencing an undefined variable. This pull request fixes it to refer to the function instead