For one you could have a function that calls auth.run() and returns an empty doc and insert that as a client-side control. For reference see a similar GitHub issue.

By on 12/18/2015 1:59 AM ()

This is a common scenario indeed. If your sitelet is based on a template, you can either modify the instantiation logic to plug your function, either into an existing placeholder or a new one; or just hardcode the call into the template itself within a <script> block.

Alternatively, you can require a custom server-side dependency (see the recent blog entry) that outputs the same <script> logic.

By on 12/17/2015 9:34 AM ()
IntelliFactory Offices Copyright (c) 2011-2012 IntelliFactory. All rights reserved.
Home | Products | Consulting | Trainings | Blogs | Jobs | Contact Us | Terms of Use | Privacy Policy | Cookie Policy
Built with WebSharper