get user identity token in ngOnInit()

I've been following the example on https://developer.blackbaud.com/skyapi/docs/addins/get-started/hello-world 


I've gotten it to work as is. However, I need my application to get the user identity token up front at the beginning. In the hello world example, the user identity token is retrieved via a button click. I have been trying to figure out how to get the user identity token without using a button. I can't figure it out. Can anybody help?

Categories