I want to add a trial period to my extension.
To check that WebStore API works I make a request:
```js
(async () => {
const getTokenAsync = () => new Promise((resolve) => chrome.identity.getAuthToken(
{ interactive: true },
resolve,
));
fetch(
{
headers: new Headers({
Authorization: `Bearer ${await getTokenAsync()}`,
'content-type': 'application/json',
}),
},
)
.then((res) => res.json())
.then((json) => {
console.log('Your license info:');
console.log(json);
});
})();
```
I run this script with my google account which I use to develop the extension. This extension is published by a google group in which I am an owner.
The result I get is like the following:
```json
{
accessLevel: "FREE_TRIAL",
createdTime: "<stamp from 2019 here>",
itemId: "<extension id here>",
kind: "chromewebstore#userLicense",
maxAgeSecs: "2",
}
```.
Now I want to limit number of days a user may use the extension during his trial period.
However I don't want to apply this limit to my developer account.
The problem is that I can't distinguish my developers accounts from some different account of a user during a trial, because they are both FREE_TRIAL.
I think it's an issue in the API, I expect developer accounts to have FULL access level instead of FREE_TRIAL so I can apply my limit to the right group of users.
Should I create a ticket in chromium bug tracker or somewhere else?
Please, let me know how should I proceed with this issue.
Thanks,
Ilya.