Skip to content

Commit a9a7288

Browse files
committed
add comment for getActiveSession
1 parent ac8402a commit a9a7288

File tree

1 file changed

+3
-0
lines changed
  • packages/connect-multichain/src/multichain/transports/default

1 file changed

+3
-0
lines changed

packages/connect-multichain/src/multichain/transports/default/index.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -312,6 +312,9 @@ export class DefaultTransport implements ExtendedTransport {
312312
}
313313

314314
getActiveSession(): Promise<Session | undefined> {
315+
// This code path should never be triggered when the DefaultTransport is being used
316+
// It's only purpose is for exposing the session ID used for deeplinking to the mobile app
317+
// and so it is only implemented for the MWPTransport.
315318
throw new Error('getActiveSession is purposely not implemented for the DefaultTransport');
316319
}
317320
}

0 commit comments

Comments
 (0)