Namespace: conversion

conversion

Methods

(static) getUserNameFromClaim(claimsString) → {string}

Extracts the user name from a claims-token string

Parameters:
Name Type Description
claimsString string the claims string
Source:
Returns:
username
Type
string
Example
var claimsToken = 'i:0ǵ.t|ipdomain|jdoe';
var username = sputils.conversion.getUserNameFromClaim(claimsToken);
console.log(username); // => 'jdoe'