UNPKG

oidc-client

Version:

OpenID Connect (OIDC) & OAuth2 client library

6 lines (4 loc) 165 B
module.exports = isPromise; function isPromise(obj) { return !!obj && (typeof obj === 'object' || typeof obj === 'function') && typeof obj.then === 'function'; }