File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -61,8 +61,8 @@ You can configure auth parameters passing them like this:
6161
6262``` js
6363const configuration = OneSignal .createConfiguration ({
64- userAuthKey: ' <YOUR_USER_AUTH_KEY >' ,
65- restApiKey: ' <YOUR_REST_API_KEY>' ,
64+ userAuthKey: ' <YOUR_ORGANIZATION_API_KEY >' , // Organization key is only required for creating new apps and other top-level endpoints
65+ restApiKey: ' <YOUR_REST_API_KEY>' , // App rest api key required for most endpoints
6666});
6767
6868const client = new OneSignal.DefaultApi (configuration);
@@ -76,7 +76,7 @@ parameter. You can then use this to modify your configuration object and create
7676const response = await client .createApp (newapp);
7777
7878const configuration = OneSignal .createConfiguration ({
79- userAuthKey: ' <YOUR_USER_KEY_TOKEN >' ,
79+ userAuthKey: ' <YOUR_ORGANIZATION_API_KEY >' ,
8080 restApiKey: response .basic_auth_key ,
8181});
8282
@@ -586,4 +586,4 @@ Give a ⭐️ if this project helped you!
586586
587587Copyright © 2023 [ OneSignal] ( https://github.com/OneSignal ) .
588588
589- This project is [ MIT] ( https://github.com/OneSignal/node-onesignal/blob/main/LICENSE ) licensed.
589+ This project is [ MIT] ( https://github.com/OneSignal/node-onesignal/blob/main/LICENSE ) licensed.
You can’t perform that action at this time.
0 commit comments