mix google.oauth.exchange (Noizu Google v0.2.3)

Copy Markdown View Source

Exchange an authorization code for tokens.

mix google.oauth.exchange --code CODE
mix google.oauth.exchange --code CODE --write-dc

With --write-dc, stores into direnv-config (no token printed):

secrets google.marketing.client_id
secrets google.marketing.client_secret
secrets google.marketing.refresh_token

Env: GOOGLE_CLIENT_ID, GOOGLE_CLIENT_SECRET (or GOOGLE_MARKETING_*).