MCPcopy Create free account
hub / github.com/git-bug/git-bug / RefreshSessionToken

Method RefreshSessionToken

bridge/jira/client.go:366–378  ·  view source on GitHub ↗

RefreshSessionToken formulate the JSON request object from the user credentials and POST it to the /session endpoint and get a session cookie

(username, password string)

Source from the content-addressed store, hash-verified

364// RefreshSessionToken formulate the JSON request object from the user
365// credentials and POST it to the /session endpoint and get a session cookie
366func (client *Client) RefreshSessionToken(username, password string) error {
367 params := SessionQuery{
368 Username: username,
369 Password: password,
370 }
371
372 data, err := json.Marshal(params)
373 if err != nil {
374 return err
375 }
376
377 return client.RefreshSessionTokenRaw(data)
378}
379
380// SetTokenCredentials POST credentials to the /session endpoint and get a
381// session cookie

Callers 1

LoginMethod · 0.95

Implementers 1

Clientbridge/github/mocks/Client.go

Calls 1

Tested by

no test coverage detected