|
/ Documentation /Developer Documentation/Action Hooks/ srfm_pro_oauth_callback_rejected

srfm_pro_oauth_callback_rejected

Description

Fires when an OAuth callback for a native integration is rejected during validation. Use it to log or alert on failed OAuth connection attempts. (Pro only)

Parameters

$reason (string) – One of: missing_params, timestamp_skew, hmac_mismatch, state_not_found, integration_type_mismatch.

Hook Source

PHP
/**
* hook source
 */
do_action( 'srfm_pro_oauth_callback_rejected', $reason );

Hook Usage

PHP
add_action( 'srfm_pro_oauth_callback_rejected', 'my_callback', 10, 1 ); function my_callback( $reason ) { 
// Log the rejected OAuth callback reason. 
}

Hook Example

PHP
add_action( 'srfm_pro_oauth_callback_rejected', 'my_callback', 10, 1 ); function my_callback( $reason ) { 
// Log the rejected OAuth callback reason. 
}
Was this doc helpful?
What went wrong?

We don't respond to the article feedback, we use it to improve our support content.

Need help? Contact Support
Table of Contents
Scroll to Top