File tree Expand file tree Collapse file tree 3 files changed +3
-2
lines changed Expand file tree Collapse file tree 3 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -61,6 +61,7 @@ function InvitePage({ resource }: ResourcePageProps): JSX.Element {
6161 inviteURL . searchParams . set ( 'agent' , agentSubject ! ) ;
6262 }
6363
64+ // Will be a `Redirect`, see RedirectPage
6465 navigate ( constructOpenURL ( inviteURL . href ) ) ;
6566 }
6667
Original file line number Diff line number Diff line change @@ -553,7 +553,7 @@ export class Store {
553553 public setAgent ( agent : Agent | undefined ) : void {
554554 this . agent = agent ;
555555
556- if ( agent ) {
556+ if ( agent && agent . subject ) {
557557 setCookieAuthentication ( this . serverUrl , agent ) ;
558558
559559 this . webSockets . forEach ( ws => {
Original file line number Diff line number Diff line change @@ -67,7 +67,7 @@ function parseResourceMessage(ev: MessageEvent): Resource[] {
6767export async function authenticate ( client : WebSocket , store : Store ) {
6868 const agent = store . getAgent ( ) ;
6969
70- if ( ! agent ) {
70+ if ( ! agent || ! agent . subject ) {
7171 return ;
7272 }
7373
You can’t perform that action at this time.
0 commit comments