Not only did this trip me up as I didn't expect it from reading the docs, it also seems to complicate things unnecessarily since the sessionPossiblyExists method does not actually do anything asynchronous. I'd suggest removing the async from the method.
In contradiction to the API docs, which say that
sessionPossiblyExists
returns a boolean, it actually returns a Promise.Not only did this trip me up as I didn't expect it from reading the docs, it also seems to complicate things unnecessarily since the
sessionPossiblyExists
method does not actually do anything asynchronous. I'd suggest removing theasync
from the method.