Pretendo account server
Go to file
2018-03-05 10:50:50 -05:00
routes Typo change and debug log 2018-03-05 10:50:50 -05:00
.gitignore Removed test client 2018-02-27 17:34:41 -05:00
constants.js remove unnecessary modules from constatns.js 2018-03-05 10:40:30 +00:00
db.js refactor config file and db.js 2018-03-05 10:27:54 +00:00
debugger.js Moved repo 2018-02-27 17:29:28 -05:00
example.config.json refactor config file and db.js 2018-03-05 10:27:54 +00:00
helpers.js change declarations in routes libraries and remove unsued libs 2018-03-05 10:56:17 +00:00
LICENSE Initial commit 2018-02-27 16:34:13 -05:00
mailer.js get source email address from config file 2018-03-05 11:00:01 +00:00
package-lock.json Moved repo 2018-02-27 17:29:28 -05:00
package.json set node env from npm 2018-03-05 10:41:08 +00:00
README.md updated readme 2018-02-28 00:27:14 -05:00
run_server.bat Moved repo 2018-02-27 17:29:28 -05:00
server.js Fix typo in environment variable 2018-03-05 13:56:00 +00:00
xml-middleware.js const usage 2018-03-05 10:34:07 +00:00

account.pretendo.cc

forthebadge

Pretendo replacement for https://account.nintendo.net

What is this?

This is the PN account server, which replaces the official NN account server account.nintendo.net

What works

  • PNID (Pretendo Network ID) creation
  • PNID deletion
  • Logging in (access and refresh tokens granted)
  • Email validation (6 digit PIN)
  • Email validation (email token)
  • Linking existing PNID to new user on console
  • Mapping user username -> PID (mapped_ids admin endpoint)
  • Custom EULA
  • Timezone lists
  • Unlink PNID from user account on console
  • Account retrieval
  • NEX token granting (still in testing, currently no working NEX/PRUDP server)

Currently implemented endpoints

Footnotes

1 I do not know what other TYPE's there are. I currently only know of one, Nintendo-Network-EULA, I still am unsure as to when I should throw error 1102 and I lack the remaining data for the rest of the EULA agreements.

2 There are MANY values here that Nintendo seems to generate on their servers. I have no idea what some of these values mean and where/how they are used. Because of this I am unsure how to properly generate these values, and I am using placeholder values instead! (see here for an example of what the return for an account is )

The entire accounts section at the beginning is new, and not sent by the registration request. It seems to have something to do with eShop accounts, though I don't know what exactly. I went to the eShop and it never even makes a request to that endpoint so the eShop isn't using that data, yet it's the only "account" mentioned. I am also unsure as to what active_flag is used for. There are also several id fields that seem completely pointless, like the id field in the email section and how the mii has it's own id, as do each of the different mii_image fields.