You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
In the Outlook Add-In SSO NAA example code, part of it relies on getting the account from Office.auth interface with the getAuthContext method. This method is not included in the Office types package.
Expected behavior
Methods and values in interfaces should be included in the types.
Additional Context
I did log the Auth interface, and it does indeed include the getAuthContext method, at least in the beta build. I suppose types just aren't up to date? Or are they waiting for it to not be in beta channel anymore?
Screenshots
Picture of ts-server error given when opening the file that contains the error.
The text was updated successfully, but these errors were encountered:
Thanks for reporting this @tomaskukk. The NAA APIs are in preview right now, which would be the @types/office-js-preview package, though the API seems to be missing from there too.
@davidchesnut, can you please follow-up and investigate?
On this topic, I tried using this method now, and it's failing with insufficient permissions. In the Add-In manifest, I have specified <Permissions>ReadWriteMailbox</Permissions>. Is there something else I need to do to get this working?
Sorry for the late reply on this issue. Are you still seeing this issue? If so can you tell us which build of Outlook this is on, and is it new Outlook or classic Outlook?
Hey, sorry I didn't see this for a while. Calling the method works fine now, but it still doesn't seem to be in the latest type package (1.0.451).
I see that the sample had been update at some point to use pca.getActiveAccount instead of pca.getAccount that needs to be passed some filter info. Maybe the getAuthContext isn't required anymore?
Describe the bug
In the Outlook Add-In SSO NAA example code, part of it relies on getting the account from
Office.auth
interface with thegetAuthContext
method. This method is not included in the Office types package.Expected behavior
Methods and values in interfaces should be included in the types.
Additional Context
I did log the Auth interface, and it does indeed include the
getAuthContext
method, at least in the beta build. I suppose types just aren't up to date? Or are they waiting for it to not be in beta channel anymore?Screenshots
Picture of ts-server error given when opening the file that contains the error.
The text was updated successfully, but these errors were encountered: