devowl-wp
    Preparing search index...
    • A REST nonce in WordPress is only valid for 12 hours (can be configured). However, if it gets invalid, the REST endpoints return a 403 error which signals us, we should recreate the nonce. To avoid multiple recreations, we memorize the newly created nonce in a pool.

      Parameters

      • nonce: string

      Returns Promise<string>

    • A REST nonce in WordPress is only valid for 12 hours (can be configured). However, if it gets invalid, the REST endpoints return a 403 error which signals us, we should recreate the nonce. To avoid multiple recreations, we memorize the newly created nonce in a pool.

      Parameters

      • nonce: string
      • restRecreateNonceEndpoint: string

      Returns Promise<string>