wharfkit / session

Create account-based sessions, perform transactions, and allow users to login using Antelope-based blockchains.
Other
10 stars 1 forks source link

Allow filtering in `getSessions` calls #58

Open aaroncox opened 1 year ago

aaroncox commented 1 year ago

It would be helpful if the getSessions call could accept an optional parameter that allows filtering of the sessions currently in storage.

The idea came about when thinking about a UI that wanted to only display sessions for a specific chain. If the getSessions call could accept an parameter of chainId, the developer could pass in a specific chainId and the call would only return sessions from that chain.