Optional Secret Directive

Hi. While the @secret directive works well, the problem is that if you define it in the schema, it becomes a mandatory input to be supplied. But is there any way to make it optional?

For eg. if a user logs in through OAuth2, there is going to be no password in the password field but rather tokens. In such case, @secret will throw error.