<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:wfw="http://wellformedweb.org/CommentAPI/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
xmlns:slash="http://purl.org/rss/1.0/modules/slash/">
<channel>
    <title>Névtelen - pastebin.tarcseh.me</title>
    <description>Névtelen - pastebin.tarcseh.me</description>
    <atom:link href="https://pastebin.tarcseh.me/view/rss/920faa4f" rel="self" type="application/rss+xml" />
    <link>https://pastebin.tarcseh.me/</link>
    <language>en</language>
<item>
    <title>Re: Névtelen</title>
    <link>https://pastebin.tarcseh.me/view/d47a8daa</link>
    <pubDate>Fri, 10 Dec 2021 09:22:11 +0100</pubDate>
    <dc:creator>Anorexic  Marten</dc:creator>
    <guid isPermaLink="false">https://pastebin.tarcseh.me/view/d47a8daa</guid>
    <description><![CDATA[import * as alt from 'alt-server'; import * as yup from 'yup'; import bcrypt from 'bcryptjs'; const { genSalt, hash } = bcrypt; import { ServerCallback } from '../helpers/Callback'; import { Positions&#8230;]]></description>
    <content:encoded><![CDATA[<div class="typoscript" style="font-family:monospace;"><ol><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">import <span style="color: #339933; font-weight: bold;">*</span> as alt from 'alt-server';</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">import <span style="color: #339933; font-weight: bold;">*</span> as yup from 'yup';</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">import bcrypt from 'bcryptjs';</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">const <span style="color: #009900;">&#123;</span> genSalt, hash <span style="color: #009900;">&#125;</span> <span style="color: #339933; font-weight: bold;">=</span> bcrypt;</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">import <span style="color: #009900;">&#123;</span> ServerCallback <span style="color: #009900;">&#125;</span> from '<span style="color: #339933; font-weight: bold;">../</span>helpers<span style="color: #339933; font-weight: bold;">/</span>Callback';</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">import <span style="color: #009900;">&#123;</span> Positions <span style="color: #009900;">&#125;</span> from '<span style="color: #339933; font-weight: bold;">../</span>config<span style="color: #339933; font-weight: bold;">/</span>Positions';</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #aaa; font-style: italic;">// DTO</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">import <span style="color: #009900;">&#123;</span> UserEntity <span style="color: #009900;">&#125;</span> from '<span style="color: #339933; font-weight: bold;">../</span>entities<span style="color: #339933; font-weight: bold;">/</span>User';</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">import <span style="color: #009900;">&#123;</span> BanEntity <span style="color: #009900;">&#125;</span> from '<span style="color: #339933; font-weight: bold;">../</span>entities<span style="color: #339933; font-weight: bold;">/</span>Ban';</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">import <span style="color: #009900;">&#123;</span> EVENTS <span style="color: #009900;">&#125;</span> from '<span style="color: #339933; font-weight: bold;">../../</span>shared<span style="color: #339933; font-weight: bold;">/</span>enums<span style="color: #339933; font-weight: bold;">/</span>Events';</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">import <span style="color: #009900;">&#123;</span> setLocalMeta <span style="color: #009900;">&#125;</span> from '<span style="color: #339933; font-weight: bold;">../</span>helpers<span style="color: #339933; font-weight: bold;">/</span>Player<span style="color: #339933; font-weight: bold;">/</span>Meta';</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">import <span style="color: #009900;">&#123;</span> randomPositionAround <span style="color: #009900;">&#125;</span> from '<span style="color: #339933; font-weight: bold;">../../</span>shared<span style="color: #339933; font-weight: bold;">/</span>utility<span style="color: #339933; font-weight: bold;">/</span>Vector';</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">import <span style="color: #009900;">&#123;</span> ADMIN_PERMISSIONS <span style="color: #009900;">&#125;</span> from '<span style="color: #339933; font-weight: bold;">../../</span>shared<span style="color: #339933; font-weight: bold;">/</span>enums<span style="color: #339933; font-weight: bold;">/</span>Admin';</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">const AuthLoginSchema <span style="color: #339933; font-weight: bold;">=</span> yup<span style="color: #339933; font-weight: bold;">.</span>object<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933; font-weight: bold;">.</span>shape<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; username<span style="color: #339933; font-weight: bold;">:</span> yup<span style="color: #339933; font-weight: bold;">.</span>string<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933; font-weight: bold;">.</span>required<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933; font-weight: bold;">.</span>min<span style="color: #009900;">&#40;</span><span style="color: #cc0000;">4</span><span style="color: #009900;">&#41;</span><span style="color: #339933; font-weight: bold;">.</span>max<span style="color: #009900;">&#40;</span><span style="color: #cc0000;">16</span><span style="color: #009900;">&#41;</span>,</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; password<span style="color: #339933; font-weight: bold;">:</span> yup<span style="color: #339933; font-weight: bold;">.</span>string<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933; font-weight: bold;">.</span>required<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933; font-weight: bold;">.</span>min<span style="color: #009900;">&#40;</span><span style="color: #cc0000;">6</span><span style="color: #009900;">&#41;</span><span style="color: #339933; font-weight: bold;">.</span>max<span style="color: #009900;">&#40;</span><span style="color: #cc0000;">32</span><span style="color: #009900;">&#41;</span>,</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span>;</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">const AuthRegistrationSchema <span style="color: #339933; font-weight: bold;">=</span> yup<span style="color: #339933; font-weight: bold;">.</span>object<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933; font-weight: bold;">.</span>shape<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; username<span style="color: #339933; font-weight: bold;">:</span> yup<span style="color: #339933; font-weight: bold;">.</span>string<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933; font-weight: bold;">.</span>required<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933; font-weight: bold;">.</span>min<span style="color: #009900;">&#40;</span><span style="color: #cc0000;">4</span><span style="color: #009900;">&#41;</span><span style="color: #339933; font-weight: bold;">.</span>max<span style="color: #009900;">&#40;</span><span style="color: #cc0000;">16</span><span style="color: #009900;">&#41;</span>,</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; password<span style="color: #339933; font-weight: bold;">:</span> yup<span style="color: #339933; font-weight: bold;">.</span>string<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933; font-weight: bold;">.</span>required<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933; font-weight: bold;">.</span>min<span style="color: #009900;">&#40;</span><span style="color: #cc0000;">6</span><span style="color: #009900;">&#41;</span><span style="color: #339933; font-weight: bold;">.</span>max<span style="color: #009900;">&#40;</span><span style="color: #cc0000;">32</span><span style="color: #009900;">&#41;</span>,</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span>;</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">interface LoginCredentials <span style="color: #009900;">&#123;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; username<span style="color: #339933; font-weight: bold;">:</span> string;</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; password<span style="color: #339933; font-weight: bold;">:</span> string;</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #009900;">&#125;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">interface RegisterCredentials <span style="color: #009900;">&#123;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; username<span style="color: #339933; font-weight: bold;">:</span> string;</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; password<span style="color: #339933; font-weight: bold;">:</span> string;</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; email<span style="color: #339933; font-weight: bold;">:</span> string;</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #009900;">&#125;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">export class Auth <span style="color: #009900;">&#123;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; constructor<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; new ServerCallback<span style="color: #009900;">&#40;</span>EVENTS<span style="color: #339933; font-weight: bold;">.</span>AUTH_LOGIN, this<span style="color: #339933; font-weight: bold;">.</span>onLogin, AuthLoginSchema<span style="color: #009900;">&#41;</span>;</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; new ServerCallback<span style="color: #009900;">&#40;</span>EVENTS<span style="color: #339933; font-weight: bold;">.</span>AUTH_REGISTER, this<span style="color: #339933; font-weight: bold;">.</span>onRegister, AuthRegistrationSchema<span style="color: #009900;">&#41;</span>;</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; <span style="color: #009900;">&#125;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; private async onLogin<span style="color: #009900;">&#40;</span>player<span style="color: #339933; font-weight: bold;">:</span> alt<span style="color: #339933; font-weight: bold;">.</span>Player, done, <span style="color: #009900;">&#123;</span> username, password <span style="color: #009900;">&#125;</span><span style="color: #339933; font-weight: bold;">:</span> LoginCredentials<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; const User <span style="color: #339933; font-weight: bold;">=</span> await UserEntity<span style="color: #339933; font-weight: bold;">.</span>findOne<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span> where<span style="color: #339933; font-weight: bold;">:</span> <span style="color: #009900;">&#123;</span> username <span style="color: #009900;">&#125;</span> <span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span>;</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; <a href="http://documentation.typo3.org/documentation/tsref/functions/if/"><span style="font-weight: bold;">if</span></a> <span style="color: #009900;">&#40;</span><span style="color: #339933; font-weight: bold;">!</span>User<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; done<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; success<span style="color: #339933; font-weight: bold;">:</span> false,</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; error<span style="color: #339933; font-weight: bold;">:</span> '<span style="color: #000066; font-weight: bold;">user_not_found</span>',</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span>;</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return;</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#125;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; const hashedPassword <span style="color: #339933; font-weight: bold;">=</span> await hash<span style="color: #009900;">&#40;</span>password, User<span style="color: #339933; font-weight: bold;">.</span>salt<span style="color: #009900;">&#41;</span>;</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; <a href="http://documentation.typo3.org/documentation/tsref/functions/if/"><span style="font-weight: bold;">if</span></a> <span style="color: #009900;">&#40;</span>User<span style="color: #339933; font-weight: bold;">.</span>password <span style="color: #339933; font-weight: bold;">!=</span> hashedPassword<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; done<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span> success<span style="color: #339933; font-weight: bold;">:</span> false, error<span style="color: #339933; font-weight: bold;">:</span> 'incorrect_password' <span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span>;</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return;</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#125;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; <a href="http://documentation.typo3.org/documentation/tsref/functions/if/"><span style="font-weight: bold;">if</span></a> <span style="color: #009900;">&#40;</span>User<span style="color: #339933; font-weight: bold;">.</span>socialId <span style="color: #339933; font-weight: bold;">!=</span> player<span style="color: #339933; font-weight: bold;">.</span>socialID<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; done<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span> success<span style="color: #339933; font-weight: bold;">:</span> false, error<span style="color: #339933; font-weight: bold;">:</span> 'socialid_mismatch' <span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span>;</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return;</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#125;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; const Ban <span style="color: #339933; font-weight: bold;">=</span> await BanEntity<span style="color: #339933; font-weight: bold;">.</span>findOne<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span> where<span style="color: #339933; font-weight: bold;">:</span> <span style="color: #009900;">&#123;</span> username, socialId<span style="color: #339933; font-weight: bold;">:</span> player<span style="color: #339933; font-weight: bold;">.</span>socialID <span style="color: #009900;">&#125;</span> <span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span>;</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; <a href="http://documentation.typo3.org/documentation/tsref/functions/if/"><span style="font-weight: bold;">if</span></a> <span style="color: #009900;">&#40;</span>Ban<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; player<span style="color: #339933; font-weight: bold;">.</span>kick<span style="color: #009900;">&#40;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; `You have been banned by $<span style="color: #009900;">&#123;</span>Ban<span style="color: #339933; font-weight: bold;">.</span>admin<span style="color: #009900;">&#125;</span><span style="color: #339933; font-weight: bold;">!</span>\nReason<span style="color: #339933; font-weight: bold;">:</span> $<span style="color: #009900;">&#123;</span>Ban<span style="color: #339933; font-weight: bold;">.</span>reason<span style="color: #009900;">&#125;</span>\nBan date<span style="color: #339933; font-weight: bold;">:</span>$<span style="color: #009900;">&#123;</span>Ban<span style="color: #339933; font-weight: bold;">.</span>ban_date<span style="color: #009900;">&#125;</span>\nExpiration date<span style="color: #339933; font-weight: bold;">:</span> $<span style="color: #009900;">&#123;</span>Ban<span style="color: #339933; font-weight: bold;">.</span>expire_date<span style="color: #009900;">&#125;</span>`</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#41;</span>;</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return;</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#125;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; player<span style="color: #339933; font-weight: bold;">.</span>setMeta<span style="color: #009900;">&#40;</span>'logged', true<span style="color: #009900;">&#41;</span>;</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; player<span style="color: #339933; font-weight: bold;">.</span>setSyncedMeta<span style="color: #009900;">&#40;</span>'logged', true<span style="color: #009900;">&#41;</span>;</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; setLocalMeta<span style="color: #009900;">&#40;</span>player, 'inQueue', false<span style="color: #009900;">&#41;</span>;</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; player<span style="color: #339933; font-weight: bold;">.</span>setMeta<span style="color: #009900;">&#40;</span>'admin', ADMIN_PERMISSIONS<span style="color: #009900;">&#91;</span>User<span style="color: #339933; font-weight: bold;">.</span>admin<span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span>;</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; player<span style="color: #339933; font-weight: bold;">.</span>setSyncedMeta<span style="color: #009900;">&#40;</span>'admin', ADMIN_PERMISSIONS<span style="color: #009900;">&#91;</span>User<span style="color: #339933; font-weight: bold;">.</span>admin<span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span>;</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; setLocalMeta<span style="color: #009900;">&#40;</span>player, 'stats', User<span style="color: #339933; font-weight: bold;">.</span>stats<span style="color: #009900;">&#41;</span>;</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; setLocalMeta<span style="color: #009900;">&#40;</span>player, 'skins', User<span style="color: #339933; font-weight: bold;">.</span>skins<span style="color: #009900;">&#41;</span>;</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; setLocalMeta<span style="color: #009900;">&#40;</span>player, 'vehicles', User<span style="color: #339933; font-weight: bold;">.</span>vehicles<span style="color: #009900;">&#41;</span>;</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; setLocalMeta<span style="color: #009900;">&#40;</span>player, 'weapons', User<span style="color: #339933; font-weight: bold;">.</span>weapons<span style="color: #009900;">&#41;</span>;</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; const <span style="color: #009900;">&#123;</span> x, y, z <span style="color: #009900;">&#125;</span> <span style="color: #339933; font-weight: bold;">=</span> randomPositionAround<span style="color: #009900;">&#40;</span>Positions<span style="color: #339933; font-weight: bold;">.</span>LOBBY_POSITION, <span style="color: #cc0000;">10</span><span style="color: #009900;">&#41;</span>;</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; const lobbySkin <span style="color: #339933; font-weight: bold;">=</span> Object<span style="color: #339933; font-weight: bold;">.</span>keys<span style="color: #009900;">&#40;</span>User<span style="color: #339933; font-weight: bold;">.</span>skins<span style="color: #339933; font-weight: bold;">.</span>runner<span style="color: #009900;">&#41;</span><span style="color: #339933; font-weight: bold;">.</span>find<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#40;</span>x<span style="color: #009900;">&#41;</span> <span style="color: #339933; font-weight: bold;">=&gt;</span> User<span style="color: #339933; font-weight: bold;">.</span>skins<span style="color: #339933; font-weight: bold;">.</span>runner<span style="color: #009900;">&#91;</span>x<span style="color: #009900;">&#93;</span> <span style="color: #339933; font-weight: bold;">===</span> true<span style="color: #009900;">&#41;</span>;</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; player<span style="color: #339933; font-weight: bold;">.</span>model <span style="color: #339933; font-weight: bold;">=</span> lobbySkin;</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; player<span style="color: #339933; font-weight: bold;">.</span>spawn<span style="color: #009900;">&#40;</span>x, y, z, <span style="color: #cc0000;">0</span><span style="color: #009900;">&#41;</span>;</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; player<span style="color: #339933; font-weight: bold;">.</span>maxHealth <span style="color: #339933; font-weight: bold;">=</span> <span style="color: #cc0000;">200</span>;</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; done<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span> success<span style="color: #339933; font-weight: bold;">:</span> true <span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span>;</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; <span style="color: #009900;">&#125;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; private async onRegister<span style="color: #009900;">&#40;</span>player<span style="color: #339933; font-weight: bold;">:</span> alt<span style="color: #339933; font-weight: bold;">.</span>Player, done, <span style="color: #009900;">&#123;</span> username, password, email <span style="color: #009900;">&#125;</span><span style="color: #339933; font-weight: bold;">:</span> RegisterCredentials<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; const HasUser <span style="color: #339933; font-weight: bold;">=</span> await UserEntity<span style="color: #339933; font-weight: bold;">.</span>findOne<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span> where<span style="color: #339933; font-weight: bold;">:</span> <span style="color: #009900;">&#123;</span> username, socialId<span style="color: #339933; font-weight: bold;">:</span> player<span style="color: #339933; font-weight: bold;">.</span>socialID, email <span style="color: #009900;">&#125;</span> <span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span>;</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; <a href="http://documentation.typo3.org/documentation/tsref/functions/if/"><span style="font-weight: bold;">if</span></a> <span style="color: #009900;">&#40;</span>HasUser<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <a href="http://documentation.typo3.org/documentation/tsref/functions/if/"><span style="font-weight: bold;">if</span></a> <span style="color: #009900;">&#40;</span>HasUser<span style="color: #339933; font-weight: bold;">.</span>username <span style="color: #339933; font-weight: bold;">==</span> username<span style="color: #009900;">&#41;</span> done<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span> success<span style="color: #339933; font-weight: bold;">:</span> false, error<span style="color: #339933; font-weight: bold;">:</span> 'username_already_taken' <span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span>;</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <a href="http://documentation.typo3.org/documentation/tsref/functions/if/"><span style="font-weight: bold;">if</span></a> <span style="color: #009900;">&#40;</span>HasUser<span style="color: #339933; font-weight: bold;">.</span>email <span style="color: #339933; font-weight: bold;">==</span> email<span style="color: #009900;">&#41;</span> done<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span> success<span style="color: #339933; font-weight: bold;">:</span> false, error<span style="color: #339933; font-weight: bold;">:</span> 'email_already_associated_with_account' <span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span>;</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <a href="http://documentation.typo3.org/documentation/tsref/functions/if/"><span style="font-weight: bold;">if</span></a> <span style="color: #009900;">&#40;</span>HasUser<span style="color: #339933; font-weight: bold;">.</span>socialId <span style="color: #339933; font-weight: bold;">==</span> player<span style="color: #339933; font-weight: bold;">.</span>socialID<span style="color: #009900;">&#41;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; done<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span> success<span style="color: #339933; font-weight: bold;">:</span> false, error<span style="color: #339933; font-weight: bold;">:</span> 'socialid_already_associated_with_account' <span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span>;</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return;</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#125;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; const salt <span style="color: #339933; font-weight: bold;">=</span> await genSalt<span style="color: #009900;">&#40;</span><span style="color: #cc0000;">6</span><span style="color: #009900;">&#41;</span>,</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; hashedPassword <span style="color: #339933; font-weight: bold;">=</span> await hash<span style="color: #009900;">&#40;</span>password, salt<span style="color: #009900;">&#41;</span>;</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; UserEntity<span style="color: #339933; font-weight: bold;">.</span>insert<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; username,</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; password<span style="color: #339933; font-weight: bold;">:</span> hashedPassword,</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; salt,</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; socialId<span style="color: #339933; font-weight: bold;">:</span> player<span style="color: #339933; font-weight: bold;">.</span>socialID,</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; email,</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #339933; font-weight: bold;">.</span>then<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#40;</span>result<span style="color: #009900;">&#41;</span> <span style="color: #339933; font-weight: bold;">=&gt;</span> done<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span> success<span style="color: #339933; font-weight: bold;">:</span> true <span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #339933; font-weight: bold;">.</span>catch<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#40;</span>error<span style="color: #009900;">&#41;</span> <span style="color: #339933; font-weight: bold;">=&gt;</span> <span style="color: #009900;">&#123;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; console<span style="color: #339933; font-weight: bold;">.</span>log<span style="color: #009900;">&#40;</span>error<span style="color: #009900;">&#41;</span>;</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; done<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span> success<span style="color: #339933; font-weight: bold;">:</span> false, error<span style="color: #339933; font-weight: bold;">:</span> 'idk' <span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span>;</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span>;</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; <span style="color: #009900;">&#125;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #009900;">&#125;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">new Auth<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>;</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li>
</ol></div>]]></content:encoded>
</item>
</channel>
</rss>
