auth: fixed support for native auth.