Add creds helper for middleware.