... | ... | @@ -167,7 +167,7 @@ JSON web token signed by one of the keys in https://api-lp1.znc.srv.nintendo.net |
|
|
|
|
|
Used to authenticate to web services (e.g. SplatNet 2). The Nintendo Switch Online app requests a web service token then sends it in the `x-gamewebtoken` header in the first request.
|
|
|
|
|
|
NookLink and SplatNet 3 handle authentication using JavaScript; as a workaround for how the server sends the token the servers for those web services set a `_gtoken` cookie to the value of the `x-gamewebtoken` header in any request it is provided in. The app also exposes a JavaScript API to allow the web service to request a new token if it expires, although web services don't usually need a web service token again as in all current web services the initial request sets a HTTP cookie session token.
|
|
|
NookLink and SplatNet 3 handle authentication using JavaScript; as a workaround for how the app sends the token the servers for those web services set the `_gtoken` cookie to the value of the `x-gamewebtoken` header in any request it is provided in. The app also exposes a JavaScript API to allow the web service to request a new token if it expires.
|
|
|
|
|
|
### Example header
|
|
|
|
... | ... | |