1.0.6 • Published 6 years ago

rbxverify v1.0.6

Weekly downloads
1
License
MIT
Repository
github
Last release
6 years ago

RbxVerify-js

Its a really, really simple verification module. Just for thos who are lazy, really.

Example (@src/example.js)

const rbxVerify = require('rbxverify')

function sleep(seconds) {
    return new Promise(resolve => setTimeout(resolve, 1000 * seconds))
}

// Anything, i.e. discordId
let myKeyId = 'randomKey'
let targetUserId = 1
rbxVerify.verify(myKeyId, targetUserId)
.then(async status => {
    
    console.log(
        `Put this in your blurb or status!\n` +
        `Token: ${status.vToken}`
    )

    // Wait ten seconds
    await sleep(10)

    let status2 = await rbxVerify.verify(myKeyId)
    console.log(
        `Attempt Results:\n` +
        `Success: ${status2.success}`
        //`${!status.success && 'vToken:' + status.vToken || ''}`
    )

})
1.0.6

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago