Authorizing pass:
POST https://sys.4chan.org/auth
act=do_login&id=TOKEN&pin=PIN
(optional) long_login=yes


Login response:
Reset:
Set-Cookie:pass_id=0; expires=Thu, 01-Jan-1970 00:00:01 GMT; Max-Age=-1396102928; path=/; domain=sys.4chan.org; secure; httponly

Cookie 1;
Set-Cookie:pass_id=PASS_ID; expires=Sun, 30-Mar-2014 14:22:09 GMT; Max-Age=86400; path=/; domain=.4chan.org; secure; httponly

Cookie 2:
Set-Cookie:pass_enabled=1; expires=Sun, 30-Mar-2014 14:22:09 GMT; Max-Age=86400; path=/; domain=.4chan.org

pass_id=ID
pass_enabled=1 // probably js only


<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta http-equiv="pragma" content="no-cache">

    <title>4chan Pass - Authenticated</title>

    <link rel="stylesheet" style="text/css" href="//s.4cdn.org/css/yotsubanew.530.css">
</head>
<body>
<div class="boardBanner">
    <div class="boardTitle">4chan Pass</div>
</div>
<hr style="width: 90%">
<br>
<div style="text-align: center;">   <h1>You are authenticated.</h1>
    <h2>[<a href="https://sys.4chan.org/auth?act=logout">Logout</a>]</h2></div>
</body>
</html>


Error responses:
<div style="text-align: center;"><span style="font-size: 14pt; color: red; font-weight: bold;"><strong style="color: red; font-size: larger;">Error: Your Token must be exactly 10 characters.</strong><br><br><br><br><div style="text-align: center;">[<a href="https://sys.4chan.org/auth">Return</a>]</div></span></div>
</body>

This Pass is already in use by another IP. Please wait 19 minutes and re-authorize by visiting this page again to change IPs.
Your Token must be exactly 10 characters.
Error: You have left one or more fields blank.
Incorrect Token or PIN.
Success! Your device is now authorized.

You can begin using your Pass immediately—just visit any board and start posting!

And when posting:
Cookie: pass_id=PASS_ID; pass_enabled=1;

Logging out:
sets cookies pass_id=0 and pass_enabled=0




