> For the complete documentation index, see [llms.txt](https://docs.unfurl-connect.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.unfurl-connect.com/guides/easy-integration/browser-only.md).

# Browser Only

Often authentication and authorization are done between client and server. Here we look at ways clients can use Unfurl that do not require the client appincation to have (or simply not use) a server. &#x20;

### Javascript

#### [oidc-client.js](https://github.com/IdentityModel/oidc-client-js/wiki)

This popular library for writting oidc clients in javascript only requires basic configuration and a few lines of code -- like so.&#x20;

```javascript
import Oidc from 'oidc-client';

const mgr = new Oidc.UserManager({
  authority: 'https://auth.unfurl-connect.com',
  client_id: 'YOUR_CLIENT_ID',
  redirect_uri: 'ONE_OF_YOUR_REDIRECT_URIs',
  response_type: 'code',
  scope: 'openid roles',
  loadUserInfo: true
});
/* Then sign-in like so: */
mgr.signinRedirect({useReplaceToNavigate:true});
```

However, a full example can be found [here](https://github.com/Unfurl-Connect/example-clients/blob/main/browser/oidc-client.html).&#x20;
