Trying to get auth token generation working. I think I'm converting data incorrectly.