sohey-dr / fitman

With fitman, all we have to do is pass the API key and we can manage tokens per project, which tends to get complicated, without dirtying up .zshrc and such.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

morflax-studio

firebase token manager

fitman is the token manager for firebase-auth. It provides appropriate token management and refresh to prevent unnecessary user creation and unify token management methods during intra-team development.

how to install

$ go install github.com/gari8/fitman@latest

how to use

2022-03-25.9.17.20.mov
[sub commands]
// create .fitman directory at your home-directory & get idToken
fitman init

// add new project `dev`
fitman add dev

// show idToken (after init) 
fitman get

// show help
fitman help

// show projects
fitman projects

// show version
fitman version

[option]
v: verbose
fitman -v get
{
  "access_token": "dummy",
  "expires_in": "3600",
  "token_type": "Bearer",
  "refresh_token": "dummy",
  "id_token": "dummy",
  "user_id": "dummy",
  "project_id": "dummy"
}

About

With fitman, all we have to do is pass the API key and we can manage tokens per project, which tends to get complicated, without dirtying up .zshrc and such.

License:MIT License


Languages

Language:Go 100.0%