Profile read endpoint answers 200 signedIn:false for visitors, so a shared /my link logs no console error
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -167,7 +167,8 @@
|
||||
// who has not proved they own the position (the API 401s them).
|
||||
async function require_() {
|
||||
try { state = await api('/api/public/profile'); }
|
||||
catch (e) { return null; } // not signed in: nothing to gate
|
||||
catch (e) { return null; }
|
||||
if (!state || state.signedIn === false) return null; // a visitor on a shared link: never gate
|
||||
if (state.profile && state.profile.complete) return state.profile;
|
||||
if (back) return null; // already open
|
||||
shell();
|
||||
|
||||
Reference in New Issue
Block a user