summaryrefslogtreecommitdiff
path: root/desk/lib/web2.hoon
blob: 6200ebe422d5cf7897e734ee66d6f6f85640115a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
|%
+$  app-creds
$%  [%twatter twatter-creds]
    [%insta insta-creds]
    [%openai p=api-key]
    [%neets p=api-key]
    [%chatgpt chatgpt-creds]
==
+$  app  $?(%twatter %openai %insta %chatgpt %neets)
+$  api-key  @t
+$  twatter-creds
$:  auth-token=@t
    ct0=@t
    kdt=@t
    twid=@t
==
+$  insta-creds
$:  sessionid=@t
    ds-user-id=@t
    csrftoken=@t
==
+$  chatgpt-creds
$:  cookie=@t
==
+$  poke
$%  [%add name=@t =app-creds]
    [%del name=@t]
==
+$  ui
$%  [%scry scry]
    [%fact fact]
==
+$  scry
$%  [%ng ~]
    [%ok p=app-creds]
    [%active (set app)]
==
+$  fact
$%  [%nothing ~]
==
+$  coki  
$:  key=@t
    value=@t 
    max-age=@ 
    expiry=@da 
    path=@t 
    domain=@t 
    secure=_.y 
    http-only=_.y 
    samesite=$?(%strict %lax %none) 
    partitioned=_|
==
++  muh  ^-  twatter-creds
:*  '245a891674d0130f09782cdc0eb3a0e995928305'
    'f2e216c7e1a7fd1e6fab09f6d25b0348c0c70c988ad715bca2307bb0995d3fa8dad5e5b6abbe4a56c13ee168135435e64baeab150e3cab2507a3ddeb28f17aacbc8222a7fed9526952629e4209ddeda2'
    'KDwilxYdu5TZHJbmXLrW1nC4k4CzeqxuKvU9Lcbb'
    'u%3D1710606417324015616'
==
++  twatter-action
  $%  [%timeline ~]
      [%user p=@t]
  ==

--