-
Notifications
You must be signed in to change notification settings - Fork 2
Authentication
Nulled edited this page Jun 28, 2021
·
4 revisions
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.
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.
- Use the firebase auth api by yourself
- Use WWAuth (a little framework by me)