adjust token to use base64 encoding