Skip to content

e-ly/rbxverify-js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

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 || ''}`
    )

})

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published