Get data from database with post request and store it server side

Im trying to store player data server sided and not on the client.
When i try to request data for example via and RPC it says i cant use async method.

What is the best way to get the data from a post request if I cant use an async function to make sure it awaits for the data.

Example of current code for login