Removed deprecated secret method

Deprecated in version 4.91