nl_tokens: ** Undocumented : ** Gets a logged - in user s IP security status for the current IP .
pl_tokens: function isSecure ( { accessToken } ) { return fetch ( ` ${ CORE_API } ` , { headers : { 'user-agent' : USER_AGENT , 'authorization' : ` ${ accessToken } ` } } ) . then ( handleErrors ) . then ( res => { // should be 204 no content which means trusted IP return true } ) . catch ( err => { // convenience wrapper around untrusted IP error // so user only needs to try/catch for network/auth errors if ( <mask> . message === 'Current IP is not secured' ) return false // pass any other error forward throw err } ) }