When I use OpenID Connect Implicit Flow, databases don't sync

I create mobile app using ionic and angular 4. I call database.sync with header: “Authorization: 'Bearer ’ + token”. My serviceconfig.json:

{
“log”:[“*”],
“CORS”: {
“Origin”: [“file://”],
“LoginOrigin”: [“file://”],
“Headers”: [“Content-Type”, “Accept”, “Authorization”, “Origin”, “Referer”,“X-CSRF-Token”],
“MaxAge”: 17280000
},
“databases”: {
“example”: {
“sync”: function (doc) { channel (doc.channels); } ,
“bucket”: “bucket1”,
“server”:“localhost:8091”,
“oidc”: {
“default_provider”: “keycloak”,
“providers”: {
“keycloak”: {
“issuer”:“https link to keycloak”,
“client_id”:“client-cbs”,
“signing_method”: “implicit”,
“register”: true
}
}
}
}
}
}

When I use:

{
“log”:[“CRUD+”, “REST+”, “Changes+”, “Attach+”],
“databases”: {
“example”: {
“bucket”: “bucket1”,
“server”:“http://localhost:8091”,
“sync”: function (doc) { channel (doc.channels); } ,
“users”: {
“GUEST”: {
“disabled”: false,
“admin_channels”: [“*”]
}
}
}
}
}

everything is ok