MCPcopy Index your code
hub / github.com/Tatamo/atcoder-cli / checkSession

Method checkSession

src/atcoder.ts:37–41  ·  view source on GitHub ↗

* ログインしているか調べる * @param force default=false trueならキャッシュを使わずちゃんと調べる

(force: boolean = false)

Source from the content-addressed store, hash-verified

35 * @param force default=false trueならキャッシュを使わずちゃんと調べる
36 */
37 async checkSession(force: boolean = false): Promise<boolean> {
38 // 以前取得済みならいちいち接続して確かめない
39 if (this._login !== null && !force) return this._login;
40 return this._login = await this.check();
41 }
42
43 /**
44 * アクセスしてログインしている状態かどうかを取得する(結果をキャッシュしない)

Callers 8

loginMethod · 0.95
sessionFunction · 0.80
contestFunction · 0.80
taskFunction · 0.80
tasksFunction · 0.80
formatFunction · 0.80
initFunction · 0.80
atcoder.tsFile · 0.80

Calls 1

checkMethod · 0.95

Tested by

no test coverage detected