Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-vahn committed Apr 22, 2024
1 parent b98ab60 commit de07a72
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -64,12 +64,12 @@ function App() {
// Get Accounts
const [account, setAccount] = useState<string | null>(null);
const getAccounts = () => {
const providerId = window.localStorage.getItem('providerId');
axios
.get(BRIDGE_URL + '/accounts', {
.get(BRIDGE_URL + '/accounts/' + providerId, {
withCredentials: true,
headers: {
'Content-Type': 'application/json',
// 'Access-Control-Allow-Origin': '*',
'ngrok-skip-browser-warning': 'true',
},
})
Expand Down
3 changes: 3 additions & 0 deletions src/components/connectOverlay/ConnectOverlay.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,9 @@ const ConnectOverlay: React.FC<Props> = ({

const response = await axios.post(BRIDGE_URL + '/init-provider');
const providerId = response.data.providerId;

window.localStorage.setItem('providerId', providerId);

WebApp.openLink(response.data.universalLink);
close();

Expand Down

0 comments on commit de07a72

Please sign in to comment.