Function resumeSession

  • reconstructSession - Reconstructs a session object from the provided arguments

    If a session object is provided, it is returned as is If a session storage client is provided, the session object is reconstructed from the session storage client using all of the sessionIds found in the storage client If a smart account address is provided, the default session storage client is used to reconstruct the session object using all of the sessionIds found in the storage client

    Parameters

    • searchParam: SessionSearchParam

      This can be a session object Session, a session storage client ISessionStorage or a smart account address Address

    Returns Promise<Session>

    A session object

    Error

    If the provided arguments do not match any of the above cases