A simple Ruby server using Sinatra that serves Bluesky custom feeds
1
fork

Configure Feed

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

check if the extracted token payload contains 'iss'

+7 -1
+1
CHANGELOG.md
··· 9 9 2. `add_feed` checks if the key contains only valid characters 10 10 3. `add_feed` checks if the feed class has a `#get_posts` method 11 11 4. `getFeedSkeleton` ensures that the limit param is between 1 and 100 (so you don't need to check that) 12 + 5. `raw_did` checks if the extracted payload contains an `iss` key 12 13 13 14 ## [0.2.1] - 2025-12-07 14 15
+6 -1
lib/blue_factory/user_info.rb
··· 56 56 57 57 begin 58 58 payload = JSON.parse(Base64.decode64(parts[1])) 59 - payload['iss'] 60 59 rescue StandardError => e 60 + raise AuthorizationError.new("Invalid JWT format", "BadJwt") 61 + end 62 + 63 + if did = payload['iss'] 64 + did 65 + else 61 66 raise AuthorizationError.new("Invalid JWT format", "BadJwt") 62 67 end 63 68 end