Get UserInfo from WordPress

Since you’re using a JWT for the current user (that is logged into WordPress), you can use this endpoint:

/wp/v2/users/me

https://developer.wordpress.org/rest-api/reference/users/#retrieve-a-user-2

You can also check the token to see what claims are available at https://jwt.ms

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)