Use base64 to encode token