bind-user does not insert data-src
When I use the es6 version of sib-oidc
, the dispatchUserInfo
of sib-auth.js
is never called, so the data-src
is never written in the sib-display
.
Here is my code:
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/webcomponentsjs/1.0.20/webcomponents-loader.js"></script>
<title>SIB Notifications - Demo</title>
<script type="module" src="../sib-notifications.js"></script>
<script type="module" src="https://unpkg.com/@startinblox/oidc@latest"></script>
<sib-auth>
<sib-auth-provider
class="sib-auth-provider"
data-authority="http://127.0.0.1:8000/openid/"
data-client_id="464079"
data-id="paris"
>
</sib-auth-provider>
</sib-auth>
<script type="module" src="https://unpkg.com/@startinblox/core@0.5"></script>
<script type="module" src="https://unpkg.com/@startinblox/router"></script>
</head>
<body>
<h1>SIB Notifications - Demo</h1>
<sib-notifications
bind-user
id-suffix="inbox"
>
</sib-notifications>
</body>
</html>