don't define ServerCtx in function authentication

Signed-off-by: abbr <wenfred@gmail.com>