๐Ÿ€ ATproto library for gleam
atproto library gleam
35

Configure Feed

Select the types of activity you want to include in your feed.

possum: add refresh_session

kacaii.dev (Jun 28, 2026, 11:43 PM -0300) 0758862c 7415d2e3

+26
+26
src/possum.gleam
··· 97 97 |> request.set_body(body) 98 98 } 99 99 100 + /// Refresh an authentication session. 101 + /// Requires auth using the 'refreshJwt' (not the 'accessJwt'). 102 + /// 103 + /// ## Examples 104 + /// 105 + /// ```gleam 106 + /// import gleam/http/request 107 + /// import possum 108 + /// 109 + /// let request = 110 + /// request.new() 111 + /// |> request.set_host("bsky.social") 112 + /// |> possum.refresh_session("refresh-jwt") 113 + /// ``` 114 + /// 115 + /// Documentation: [/xrpc/com.atproto.server.refreshSession](https://endpoints.bsky.app/#bluesky-app/tag/comatprotoserver/POST/xrpc/com.atproto.server.refreshSession) 116 + pub fn refresh_session( 117 + request: request.Request(_), 118 + refresh token: String, 119 + ) -> request.Request(_) { 120 + request 121 + |> authorized(token) 122 + |> request.set_method(http.Post) 123 + |> request.set_path(com_atproto_server <> ".refreshSession") 124 + } 125 + 100 126 /// Include a access token in the request's headers. 101 127 /// Tokens can be acquired with `create_session`. 102 128 ///