feat(auth): instrui onde gerar o PAT no login interativo#9
Merged
Conversation
djalmaaraujo
force-pushed
the
djalma1/lin-6317
branch
from
July 16, 2026 12:58
530144f to
60a4ecf
Compare
cirdes
approved these changes
Jul 16, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Issue relacionada
LIN-6317 — lk auth login: instruir onde gerar o PAT
Descrição
O
lk auth logininterativo mostrava sóToken:, sem dizer onde gerar o token. Agora:--token/LK_TOKEN): imprime no stderr a URL do ambiente ativo (<base_url>/srm_settings/access_tokens) e o passo a passo com os rótulos reais da UI — clicar em "Novo token", confirmar em "Criar token", copiar o segredo na modal "Copie seu token agora" (exibido uma única vez) e voltar ao terminal pra colar. stdout continua só com dados (contrato JSON intacto).--helpdoauth loginganhouLongdocumentando o fluxo, a precedência--token>LK_TOKEN> prompt e o formatolkn_.--tokenouLK_TOKEN, nenhum ruído extra (comportamento atual preservado).Rótulos da UI verificados no backend em
app/views/srm_settings/access_tokens/.Antes / Depois
Token:Token:token does not look like a Linkana PAT (expected lkn_...); generate one at <base_url>/srm_settings/access_tokensComo testar
make build./lk auth login(sem flag/env) → deve mostrar as instruções com a URL do ambiente ativo antes doToken:; cole umlkn_...e confirme osaved../lk auth login --token lkn_x_y→ sem instruções no stderr../lk auth login --token invalido→ erro cita a URL../lk auth login --help→ seção explicando onde gerar o token.Testes:
make testemake coververdes (95,1% ≥ 95%),make lintlimpo.🤖 Generated with Claude Code