createSecret( )


Creates a new secret.

について createSecret() function returns a Promise that resolves secret ID when the secret is created.

注釈

  • The secret's name cannot start with 'wix' or be identical to an existing secret's name.
  • Don't leave private keys in your code. Leaving them in your code is a security risk. Make sure to delete the keys from the code after running createSecret().
Authentication

You can only call this method when authenticated as a Wix app or Wix user identity.

Permissions
Manage Secrets
Learn more about app permissions.
メソッド宣言
コピー
メソッド・パラメータ
secretSecretRequired

Fields of a new secret.

リターン
Return Type:Promise<string>
役に立ちましたか?
はい
いいえ