Scan your whole stack
Are you using @mavonengine/auth?
Find out what’s in your code.
Scan your apps free in minutes (opens in a new tab)Latest version: v0.0.5
@mavonengine/auth was last scanned on 28 Nov 2026 at version 0.0.5. Risk score 0 of 100. No malicious behavior was detected.
| Version | Published | Status |
|---|---|---|
| 0.0.5 LATEST | 28 Nov 2026 | No rules fired |
| 0.0.4 | 26 Nov 2026 | No rules fired |
| 0.0.3 | 23 Nov 2026 | No rules fired |
| 0.0.2 | 21 Nov 2026 | Not shown |
Findings for v0.0.5. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.
The score describes 0.0.5; other versions have their own rules, not their own score.
The publisher’s own README, as collected from the registry.
A MavonEngine plugin that gives a multiplayer game player accounts. Players register and log in with a username and password, and the game server only lets clients connect with a session that works. Every connection then has a stable identity, the same account id on every reconnect, so mutes, scores and saves can be kept per player instead of per connection.
npx @mavonengine/cli install @mavonengine/sqlite
npx @mavonengine/cli install @mavonengine/auth
It keeps its accounts in the server's database, so it needs a database plugin such as @mavonengine/sqlite. Without one it turns every client away with 503 and says so in the log.
_, . or -, unique regardless of case. Passwords are at least 8 characters and stored as scrypt hashes, built into Node, so there is nothing native to install.register, login, /me), admins in the account list; the game's identity of a connection never has it. With the mail plugin, a link to confirm it is mailed to it. See Email.{ id, name, session } as its identity, session being a short, non-secret key that tells the account's sessions apart.auth(server).signIn() to log a player in to the same kind of account, linked to one they already have if they like. See Login plugins.Set them under the plugin in mavonengine.json. All are optional.
{
"plugins": {
"@mavonengine/auth": {
"options": {
"sessionDays": 30,
"registration": true,
"devGuests": false
}
}
}
}
| Option | Default | |
|---|---|---|
path |
/api/auth |
Where the routes are |
registration |
true |
Whether players can make an account with a username and password. Off, only existing accounts and login plugins work |
sessionDays |
30 |
How long a session lasts without being used. Every use, connecting included, moves it on |
guests |
false |
Let players play as guests, see Guests |
guestDays |
30 |
How long a guest session lasts without being used. Once it ran out, the guest account is deleted |
guestsPerHour |
20 |
Guest accounts one address may make per hour |
devGuests |
false |
Let clients without any session in, without an identity, when NODE_ENV isn't production. Handy to open the editor without logging in. A production server never does. Not the same as guests, whose guests have accounts |
loginAttempts |
10 |
Failed logins per address and username before they are refused for a while |
loginWindowMinutes |
15 |
How long those failed logins count |
verifyEmail |
true |
Mail a link to confirm an email when an account gets one |
verifyUrl |
the plugin's page | The game's own page for confirming, with {token}, see Email |
resetUrl |
the plugin's page | The game's own page for a new password, with {token} |
resetsPerHour |
5 |
Password resets one address may ask for per hour |
The rate limit tells addresses apart by req.ip. Behind a reverse proxy, set Express's trust proxy in the server's onHttp() so that is the player's address and not the proxy's.
With @mavonengine/mail, accounts' emails are confirmed and forgotten passwords reset with links mailed to them. The mails go out in the mail plugin's layout. Without the mail plugin, nothing is mailed, and the routes that need it answer 503.
npx @mavonengine/cli install @mavonengine/mail
emailVerified in the player's own account, and emailVerifiedAt for admins and other plugins, say whether it was. A new email isn't confirmed, and links mailed before stop working.requestPasswordReset(email) mails a link that works for 60 minutes, once, to the account with that email. It answers the same whether an account has that email or not, and before looking, so it doesn't tell which emails have accounts. The link opens a page for the new password. Setting it logs the account out everywhere, closes its game connections, and confirms the email, as the link proved it is the player's. Changing the password, or asking again, makes the link stop working. Accounts that log in through another service, guests and disabled accounts get no link.resetsPerHour resets.appUrl at the top of mavonengine.json (or MAVONENGINE_APP_URL), which a production server needs: links are never built from the address a request names, which whoever sends it chooses. In development the request's own address is used.{
"appUrl": "https://mygame.com",
"appName": "My Game",
"plugins": {
"@mavonengine/auth": {}
}
}
The links open the plugin's own pages, which work in any game. A game with pages of its own points the links there, with {token} where the token goes, and sends the token on from them:
{ "verifyUrl": "https://mygame.com/verify?token={token}", "resetUrl": "https://mygame.com/reset?token={token}" }
import { resetPassword, verifyEmail } from '@mavonengine/auth/client'
const token = new URLSearchParams(location.search).get('token')!
await verifyEmail(token) // on the verify page
await resetPassword(token, newPassword) // on the reset page: logs this browser in
With "guests": true, players can play without signing up and alongside those who did:
import { checkSession, playAsGuest } from '@mavonengine/auth/client'
const account = await checkSession() ?? await playAsGuest()
joinServer()
playAsGuest() makes a guest account, named like Guest-4821, and logs the browser in to it. A guest connects like any player, with guest: true in its identity, so the game can tell: if (player.identity?.guest) … to leave guests off the leaderboard, say.identity.id work for guests too, and last across reconnects.register(username, password) from a guest's browser turns the guest account into a full one: same id, so the guest keeps everything the game kept for it. So does a login plugin with linkTo the guest's account.guestDays without playing, clearing the browser's storage, or logout(). After that nobody can log in to it, and it is deleted. Tell guests to register to keep their progress, e.g. when currentAccount()?.guest is true.guestsPerHour limits how many one address makes. For a game where bans must hold, leave guests off.The plugin sends the session when the game connects. Log the player in before you make the NetworkManager, and make a new one to connect again after logging in or out:
import { AuthRequestError, checkSession, currentAccount, login, logout, register } from '@mavonengine/auth/client'
// On start: is the stored session still good?
const account = await checkSession()
if (account)
joinServer()
async function onLoginForm(username: string, password: string) {
try {
await login(username, password)
joinServer()
}
catch (err) {
if (err instanceof AuthRequestError)
showError(err.message) // "Wrong username or password", "Too many failed logins, …"
}
}
register(username, password, email?), login(username, password) and playAsGuest() resolve with the account ({ id, name, email }, and guest: true for a guest) and keep the session in localStorage. They reject with an AuthRequestError carrying the server's status and message.logout() forgets the session, on the server too when it can be reached. The server closes the game connection made with that session; the player's other devices stay in the game.changePassword(current, password) changes it and logs out every other device, closing their game connections.changeEmail(email) changes the email (null takes it away) and mails a link to confirm it. resendVerification() mails a new one.requestPasswordReset(email) mails a link to reset the password. Say "if an account has this email, we mailed it a link", as the answer is the same either way.verifyEmail(token) and resetPassword(token, password) are for games with pages of their own, see Email.currentAccount() is the stored account, without asking the server. checkSession() asks, and forgets a session the server no longer knows.window gets a mavonengine:auth event (AUTH_EVENT) with the account, or null, whenever the player logs in or out.When the server turns the connection away, the NetworkManager triggers connectError with the status: 401 means log in again.
Core gives every plugin and the game the identity of a connection: ctx.identity(channel) in a plugin, player.identity in the game. Key what should outlast a connection on identity.id:
export default defineServerPlugin({
onConnection(channel, player, ctx) {
const id = ctx.identity(channel)?.id
if (id)
loadSave(id)
},
})
auth(server) from @mavonengine/auth/server looks after the accounts from the game's code:
import { auth } from '@mavonengine/auth/server'
await auth(server).disable(accountId) // can't log in or connect, its connections close
await auth(server).enable(accountId)
await auth(server).endSessions(accountId) // logged out everywhere, its connections close
const account = await auth(server).account(accountId)
Other plugins get the same as ctx.plugin('@mavonengine/auth'), which is undefined when the project has no auth plugin, so they can do without accounts: await ctx.plugin('@mavonengine/auth')?.account(id).
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.
The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).
The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.