Authentication - Nul-led/wwo GitHub Wiki
Description
Since WWO uses many features of Firebase, authentication is also a part of it. Firebase uses various providers to authenticate you, such as oauth and email/password authentication. You will need to get a signed authentication token (or accesstoken), a json web token that is used to communicate with the various backend api's. There are several methods to obtain a token. These are listed here.
Information
If most cases you will need to send the token directly in the request headers:
fetch('url', {
method: 'GET',
headers: {'authorization': `Bearer ${accessToken}`}
})
But during the connection process with a game socket you will need to add it to the query object.
Methods of getting authentication working
- Use the firebase auth api by yourself
- Use WWAuth (a little framework by me)