i have asp.net view and while working on Identity server ,i have two clients mvc client and java script client . how can i access via java script client ??

please suggest ways , I tried multiple logic to access it but non of them working