Authentication: SPRITE_TOKEN env variable is not working or is not implemented

Open
#135 2 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
35/100
Issue type
Documentation
Clarity
Mostly clear
Activity status
Stale
Tech stack
shell

Research direction

Review the authentication documentation and the sprite auth setup --token and sprite org auth examples from the report. Check whether SPRITE_TOKEN is supported, then update the relevant documentation so the supported token workflow and its expected behavior are explicit. Done means the documented command works or clearly explains that the variable is unavailable.

Written by the indexing model from the issue text.

Description

Hallo,

I could not find any way to pass a token via an environment variable.

My Environment

I'm using Windows WSL and I don't have any keyring

sprite auth setup --token "org-slug/org-id/token-id/token-value"
⚠️  WARNING: No system keyring available. Storing secrets unencrypted in ~/.sprites/keyring/
✓ Set up authentication for org-slug

Storing secrets unencrypted is not really secure.

Environment Variable test
I'm using pass to secure api token and inject them at runtime via a wrapper script.

I tried to use SPRITE_TOKEN as an environment variable as I found it in your API documentation but it's not working.

SPRITE_TOKEN=org-slug/org-id/token-id/token-value sprite org auth
Error: no Fly.io token found. Please run 'sprite login' first
Dominant language
TypeScript
Stars
51
Forks
4
Avg merge
23h 57m
Merged PRs (30d)
12

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from superfly/sprites-docs

All issues in superfly/sprites-docs

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.