message: adding authetnciated-as url
diff: import { OAuth2Token } from '../../oauth2/types';
  import { PrivilegeMap } from '../../privilege/types';
  +import url from 'url';
  export function accessToken(token: OAuth2Token, privileges: PrivilegeMap) {
  @@ -22,6 +23,11 @@ export function refreshToken(token: OAuth2Token, privileges: PrivilegeMap) {
  client_id: token.clientId,
  username: token.user.nickname,
  token_type: 'refresh_token',
  + _links: {
  + 'authenticated-as': {
  + href: url.resolve(process.env.PUBLIC_URI!, '/user/' + token.user.id),
  + }
  + }
  };
  }
  