Session

Session

The class used to save FileMaker Data API Session information

Constructor

new Session()

Source:

Members

id :String

A string containing a unique identifier for a session.

Source:
Type:
  • String

issued :String

A string containing the time the token token was issued.

Source:
Type:
  • String

token :String

The token to use when querying an endpoint.

Source:
Type:
  • String

Methods

(static) expired() → {Boolean}

This method checks to see if a session has expired.

Source:
See:
  • Agent#watch
  • Connection#available
Returns:
Type:
Boolean

True if the token has expired, otherwise False.

(static) extend()

This method extends a Data API session and sets it to inactive.

Source:
See:
  • Agent#handleResponse

(static) valid() → {Boolean}

This method checks to see if the session is not currently active and not expired.

Source:
See:
  • Agent#watch
  • Connection#available
Returns:
Type:
Boolean

True if the token is valid, otherwise False.

Session

new Session()

Source:

Members

id :String

A string containing a unique identifier for a session.

Source:
Type:
  • String

issued :String

A string containing the time the token token was issued.

Source:
Type:
  • String

token :String

The token to use when querying an endpoint.

Source:
Type:
  • String

Methods

(static) expired() → {Boolean}

This method checks to see if a session has expired.

Source:
See:
  • Agent#watch
  • Connection#available
Returns:
Type:
Boolean

True if the token has expired, otherwise False.

(static) extend()

This method extends a Data API session and sets it to inactive.

Source:
See:
  • Agent#handleResponse

(static) valid() → {Boolean}

This method checks to see if the session is not currently active and not expired.

Source:
See:
  • Agent#watch
  • Connection#available
Returns:
Type:
Boolean

True if the token is valid, otherwise False.