I can set user_id when providing an authorization code to the client, but I cannot set user_id when providing an access token. user_id is always null in the access token.
I read somewhere that I need to subclass pdo class. What does this mean? how to do this?