A third party ATProto appview
at main 25 lines 661 B view raw
1#!/bin/bash 2 3# Test authentication endpoints 4 5source "$(dirname "$0")/config.sh" 6 7echo "================================" 8echo "Authentication Tests" 9echo "================================" 10echo "" 11 12# Test create session (requires valid DID and tokens) 13echo "Note: This will fail without valid PDS credentials" 14make_request "POST" "/api/auth/create-session" '{ 15 "did": "'"$TEST_DID"'", 16 "pdsEndpoint": "https://bsky.social", 17 "accessToken": "dummy-token-for-testing", 18 "refreshToken": "dummy-refresh-token" 19}' 20 21# Test get current session (requires authentication) 22make_request "GET" "/api/auth/session" 23 24# Test logout 25make_request "POST" "/api/auth/logout"