Title: Detect Authentication using action hook
Last modified: October 21, 2020

---

# Detect Authentication using action hook

 *  [Márcio Lopes Fão](https://wordpress.org/support/users/marciofao/)
 * (@marciofao)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/detect-authentication-using-action-hook/)
 * Hi, I am tring to implement an usermeta that stores the last acess date of the
   user.
 * I was expecting be able to use this:
 * add_action(‘wp_login’, ‘save_user_acess’);
 * But it seems to not work. Is there any specific action hook for that?

The topic ‘Detect Authentication using action hook’ is closed to new replies.

 * ![](https://ps.w.org/jwt-authentication-for-wp-rest-api/assets/icon-256x256.jpg?
   rev=3372068)
 * [JWT Authentication for WP REST API](https://wordpress.org/plugins/jwt-authentication-for-wp-rest-api/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/jwt-authentication-for-wp-rest-api/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/jwt-authentication-for-wp-rest-api/)
 * [Active Topics](https://wordpress.org/support/plugin/jwt-authentication-for-wp-rest-api/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/jwt-authentication-for-wp-rest-api/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/jwt-authentication-for-wp-rest-api/reviews/)

## Tags

 * [action hook](https://wordpress.org/support/topic-tag/action-hook/)
 * [authentication](https://wordpress.org/support/topic-tag/authentication/)
 * [jwt](https://wordpress.org/support/topic-tag/jwt/)
 * [rest](https://wordpress.org/support/topic-tag/rest/)

 * 0 replies
 * 1 participant
 * Last reply from: [Márcio Lopes Fão](https://wordpress.org/support/users/marciofao/)
 * Last activity: [5 years, 6 months ago](https://wordpress.org/support/topic/detect-authentication-using-action-hook/)
 * Status: not resolved