Automating preauthorization using the API

Interesting. It looks like the sed syntax in this command is specific to GNU sed and does not work with the MacOS version of sed. I was able to get a similar error on my Big Sur machine.

If you have homebrew installed and the sed from there installed as “gsed” you can modify the command to use that instead.

Alternately it looks like using:

DEVICE_PUBLIC_KEY="$(cat keys-client-generated/public.key | awk 1 ORS='\\n')"

will work. Can you give that a shot?

Drew