Warning
this is for yolkbot 2.0, which is in open beta. visit the old documentation to learn about the current release version of yolkbot.
you can authenticate in one of four ways:
- anonymously - no credentials. the default that will happen if you don't write login logic. has no email or password.
- email & password - the classic way. you can make one of these guys with createAccount.
- refresh token - best for facebook auth or google auth within the browser. refresh tokens are very long strings that never expire. a script for extracting it from ingame is available on the linked documentation.
- google (non-headless desktop only) - opens a page on localhost where you run the google oauth with your account. if have a specific email, you can pass it to force that as the only email that can be signed in with. as a side effect, if you've previously signed in with that email on google, it won't open localhost since the credentials are already saved.
once you login, account will become defined with all of the amazing account information!