-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdebug_authentication.sh
More file actions
40 lines (31 loc) · 963 Bytes
/
debug_authentication.sh
File metadata and controls
40 lines (31 loc) · 963 Bytes
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
#!/bin/bash
echo "🔍 Debugging Authentication Issues"
echo "================================="
cd icp_backend
echo "📊 Checking canister status..."
dfx canister status supply_chain_backend
dfx canister status internet_identity
echo ""
echo "🧪 Testing canister calls..."
dfx canister call supply_chain_backend get_canister_status
echo ""
echo "📋 Checking dfx identity..."
dfx identity whoami
dfx identity get-principal
echo ""
echo "🔗 Checking network configuration..."
dfx ping
echo ""
echo "📦 Checking canister IDs..."
echo "Supply Chain: $(dfx canister id supply_chain_backend)"
echo "Internet Identity: $(dfx canister id internet_identity)"
echo ""
echo "🌐 Environment variables:"
cd ..
cat .env.local
echo ""
echo "💡 If issues persist:"
echo "1. Clear browser cache completely"
echo "2. Try incognito/private browsing"
echo "3. Check browser console for errors"
echo "4. Restart dfx: dfx stop && dfx start --background --clean"