Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Outlook Add-In SSO NAA example contains code that isn't in the types. #814

Open
tomaskukk opened this issue Jul 10, 2024 · 3 comments
Open

Comments

@tomaskukk
Copy link

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.

image
@AlexJerabek
Copy link
Collaborator

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?

@tomaskukk
Copy link
Author

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?

image

@davidchesnut
Copy link
Member

Hi @tomaskukk,

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?

Thanks!
David

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants