Skip to content

auth export doesn't export credentials #179

@diwakergupta

Description

@diwakergupta

I've successfully authorized 2 accounts on my laptop:

$ gws auth list
{
  "accounts": [
    {
      "added": "2026-03-05T16:02:46.903076+00:00",
      "email": "<redacted>",
      "is_default": false
    },
    {
      "added": "2026-03-05T16:02:16.168759+00:00",
      "email": "<redacted>",
      "is_default": true
    }
  ],
  "count": 2,
  "default": "<redacted>"
}

I want to use gws on a server, so I followed instructions at https://github.com/googleworkspace/cli?tab=readme-ov-file#headless--ci-export-flow

I ran gws auth export --unmasked > credentials.json which seems to succeed -- no errors or logs. But credentials.json has:

{
  "error": {
    "code": 401,
    "message": "No encrypted credentials found. Run 'gws auth login' first.",
    "reason": "authError"
  }
}

Expected behavior

gws auth export should work as described.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions