Forum Discussion
Cookies inside Teams Personal App
Stand - You can use the Microsoft Teams JavaScript client library (TeamsJS) to handle navigation within your tab app. The TeamsJS library provides support for navigation within a tab, including types of navigation such as between tabs within the app or through the use of Teams UI components and the back button.
By using the TeamsJS library, you can provide users access to your web application right within Teams using tabs, without having to sign in again. This way, you can maintain the user's authentication state within the tab app without relying on third-party cookies.
To implement this solution, you can follow these steps:
-
Include the TeamsJS library in your tab app. You can find the library and its documentation here.
-
Use the TeamsJS library to handle navigation within your tab app. You can find examples and documentation on how to use the library for navigation here.
By using the TeamsJS library for navigation, you can ensure that the user's authentication state is maintained within the tab app, even without relying on third-party cookies. This way, you can continue to use Microsoft Clarity or any other analytics tool that requires cookies within your tab app.
It's important to note that the TeamsJS library provides support for navigation within a tab, but it doesn't provide direct access to cookies or the ability to enable cookies within the Teams tab experience. However, by using a token-based system or first-party cookies for authentication workflows, you can achieve a similar result without relying on third-party cookies.
For more information about building tabs for Teams and using the TeamsJS library, you can refer to the following documentation:
- StandSep 25, 2023Copper ContributorOur app does use TeamsJS... Your response does not address the particular issue at hand and kind of sounds like a generic response generated by chatGPT.
- Sayali-MSFTSep 25, 2023MicrosoftStand - Could you please elaborate more on your requirement and share the repro steps, so that we can try it from our end.