I need to send a base64 encoded string in Authorization header of my requests.
If I put the Authorization header in app query, {{ btoa(current_user.email) }}
works. However, if I move the same to Resource, it outputs undefined
. Is btoa()
not supported in Resource? Is there a way to pass in base64 encoded string to Resource?