keithjgrant / omnibear

A Micropub browser extension
MIT License
36 stars 8 forks source link

Syndication targets are fetched even when token fetch failed #81

Open cweiske opened 5 years ago

cweiske commented 5 years ago

I have trouble signing in with commentpara.de (but that's another issue). The problem here is that Omnibear tries to fetch syndication targets, even when fetching the token fails.

Syndication targets should only be fetched when the token has been fetched successfully.

25/1/2019 8:33:40.514 Begin authentication to https://commentpara.de
25/1/2019 8:33:40.597 authorization_endpoint found: https://commentpara.de/auth.php?me=https%3A%2F%2Fcommentpara.de&client_id=https%3A%2F%2Fomnibear.com&redirect_uri=https%3A%2F%2Fomnibear.com%2Fauth%2Fsuccess%2F&response_type=code&scope=create%20delete%20update&state=very-secret-omnibear-state
25/1/2019 8:33:45.969 Retrieving access token…
25/1/2019 8:33:46.24 Error fetching token
25/1/2019 8:33:46.25 Fetching syndication targets…
25/1/2019 8:33:46.27 Missing required options: token