get SharePoint token using user authentication
Client ID
Tenant ID
Local port for redirect
Scopes for the token
Optional
Optional resource URL to navigate to
SharePoint access token
const token = await getSharePointTokenUserAuth(ctx, { clientId: 'your-client-id', tenantId: 'your-tenant-id', localPort: 3000, scopes: ['https://graph.microsoft.com/.default'], resourceUrl: 'https://your-sharepoint-site-url',}); Copy
const token = await getSharePointTokenUserAuth(ctx, { clientId: 'your-client-id', tenantId: 'your-tenant-id', localPort: 3000, scopes: ['https://graph.microsoft.com/.default'], resourceUrl: 'https://your-sharepoint-site-url',});
get SharePoint token using user authentication