@speedcubing/piedeprecated

Server for SCO

Usage no npm install needed!

<script type="module">
  import speedcubingPie from 'https://cdn.skypack.dev/@speedcubing/pie';
</script>

README

SCO Pie

The server for the Speedcubing Online website.

Notable Information

The .env file has been removed from the project's directory for security purposes, so you must add your own with the following value(s):

  • session_secret: (Preferably) a random string that is used for account sessions. As the name says, you should keep this a secret.

API Error Codes

General

  1. No error occured and the requested information is available.
  2. An internal server error occured. If you repeatedly recieve this error code, please create an issue so we can look into the problem as soon as possible.

Authentication

  1. You are unauthenticated and the requested information requires a user to be authenticated.
  2. The email provided for the account you are trying to create is already in use.
  3. The account you are trying to log into doesn't exist.
  4. The provided password to the account you are trying to create isn't strong enough.
  5. The email you provided is invalid.
  6. The username you are trying to change to is already taken.
  7. The password you provided to log in with doesn't match our records.

API

  1. The account you are requesting information about doesn't exist, either the account was deleted or the username was changed.
  2. The provided API key or token is invalid.