about summary refs log tree commit diff
path: root/src/state/queries/index.ts
diff options
context:
space:
mode:
authordan <dan.abramov@gmail.com>2024-05-01 02:55:43 +0100
committerGitHub <noreply@github.com>2024-05-01 02:55:43 +0100
commit39807a86309ccfeeffbd054808c0e78e42ff940e (patch)
tree43e5bd4d79c127aad384317ce177bbec70a6ec06 /src/state/queries/index.ts
parent66ad5543f1fb74c8e75edba7d626cdeeb8297d44 (diff)
downloadvoidsky-39807a86309ccfeeffbd054808c0e78e42ff940e.tar.zst
[Session] Refactor to prepare for V2 (#3781)
* Move types to another file

Co-authored-by: dan <dan.abramov@gmail.com>

* Move utilities out

Co-authored-by: dan <dan.abramov@gmail.com>

* Move PUBLIC_BSKY_AGENT

Co-authored-by: dan <dan.abramov@gmail.com>

* Move createPersistSessionHandler inline

Co-authored-by: dan <dan.abramov@gmail.com>

* Call configureModeration when clearing account too

This ensures that the app labelers get reset in a test environment.

Co-authored-by: dan <dan.abramov@gmail.com>

* Make guest configureModeration sync, non-guest async

* Extract isSessionExpired

Co-authored-by: dan <dan.abramov@gmail.com>

* Flip isSessionExpired condition

Co-authored-by: dan <dan.abramov@gmail.com>

* Extract agentToSessionAccount

Co-authored-by: dan <dan.abramov@gmail.com>

* Extract createAgent*

Co-authored-by: dan <dan.abramov@gmail.com>

* Simplify isSessionExpired

---------

Co-authored-by: Eric Bailey <git@esb.lol>
Diffstat (limited to 'src/state/queries/index.ts')
-rw-r--r--src/state/queries/index.ts8
1 files changed, 0 insertions, 8 deletions
diff --git a/src/state/queries/index.ts b/src/state/queries/index.ts
index e30528ca1..0635bf316 100644
--- a/src/state/queries/index.ts
+++ b/src/state/queries/index.ts
@@ -1,11 +1,3 @@
-import {BskyAgent} from '@atproto/api'
-
-import {PUBLIC_BSKY_SERVICE} from '#/lib/constants'
-
-export const PUBLIC_BSKY_AGENT = new BskyAgent({
-  service: PUBLIC_BSKY_SERVICE,
-})
-
 export const STALE = {
   SECONDS: {
     FIFTEEN: 1e3 * 15,