- handled undefined shared secret