♻️ Extract signing flow into own method (#28626)
♻️ Extract signing flow into own method (#28626)

* extract method

* fix types
ampproject/amphtml,smartadserver/amphtml,sharethrough/amphtml,nexxtv/amphtml,zhouyx/amphtml,Gregable/amphtml,yandex-pcode/amphtml,jmadler/amphtml,voyagegroup/amphtml,danielrozenberg/amphtml,zhouyx/amphtml,yandex-pcode/amphtml,honeybadgerdontcare/amphtml,jridgewell/amphtml,yandex-pcode/amphtml,media-net/amphtml,zhouyx/amphtml,nexxtv/amphtml,prateekbh/amphtml,yandex-pcode/amphtml,sharethrough/amphtml,yandex-pcode/amphtml,media-net/amphtml,jpettitt/amphtml,alanorozco/amphtml,jmadler/amphtml,zhouyx/amphtml,prateekbh/amphtml,voyagegroup/amphtml,jpettitt/amphtml,jmadler/amphtml,rsimha-amp/amphtml,mhc-gh/amphtml,adup-tech/amphtml,jridgewell/amphtml,voyagegroup/amphtml,honeybadgerdontcare/amphtml,mhc-gh/amphtml,voyagegroup/amphtml,mhc-gh/amphtml,lannka/amphtml,prateekbh/amphtml,danielrozenberg/amphtml,sharethrough/amphtml,sharethrough/amphtml,jridgewell/amphtml,lannka/amphtml,adup-tech/amphtml,jmadler/amphtml,rsimha-amp/amphtml,honeybadgerdontcare/amphtml,jpettitt/amphtml,alanorozco/amphtml,media-net/amphtml,jridgewell/amphtml,yandex-pcode/amphtml,media-net/amphtml,danielrozenberg/amphtml,smartadserver/amphtml,lannka/amphtml,rsimha-amp/amphtml,lannka/amphtml,jridgewell/amphtml,alanorozco/amphtml,Gregable/amphtml,zhouyx/amphtml,adup-tech/amphtml,voyagegroup/amphtml,zhouyx/amphtml,Gregable/amphtml,alanorozco/amphtml,smartadserver/amphtml,prateekbh/amphtml,jmadler/amphtml,honeybadgerdontcare/amphtml,Gregable/amphtml,zhouyx/amphtml,lannka/amphtml,ampproject/amphtml,adup-tech/amphtml,mhc-gh/amphtml,sharethrough/amphtml,nexxtv/amphtml,adup-tech/amphtml,mhc-gh/amphtml,smartadserver/amphtml,media-net/amphtml,danielrozenberg/amphtml,alanorozco/amphtml,nexxtv/amphtml,media-net/amphtml,alanorozco/amphtml,ampproject/amphtml,rsimha-amp/amphtml,honeybadgerdontcare/amphtml,media-net/amphtml,danielrozenberg/amphtml,rsimha-amp/amphtml,honeybadgerdontcare/amphtml,lannka/amphtml,Gregable/amphtml,alanorozco/amphtml,mhc-gh/amphtml,danielrozenberg/amphtml,honeybadgerdontcare/amphtml,yandex-pcode/amphtml,ampproject/amphtml,jridgewell/amphtml,sharethrough/amphtml,rsimha-amp/amphtml,jpettitt/amphtml,jpettitt/amphtml,smartadserver/amphtml,ampproject/amphtml,jridgewell/amphtml,ampproject/amphtml,ampproject/amphtml,voyagegroup/amphtml,prateekbh/amphtml,nexxtv/amphtml,danielrozenberg/amphtml,prateekbh/amphtml,mhc-gh/amphtml,media-net/amphtml,Gregable/amphtml,ampproject/amphtml,voyagegroup/amphtml,adup-tech/amphtml,jpettitt/amphtml,jpettitt/amphtml,mhc-gh/amphtml,Gregable/amphtml,danielrozenberg/amphtml,nexxtv/amphtml,jpettitt/amphtml,alanorozco/amphtml,lannka/amphtml,smartadserver/amphtml,jmadler/amphtml,rsimha-amp/amphtml,Gregable/amphtml,nexxtv/amphtml,prateekbh/amphtml