Hi @bilalSN53S,
Thanks for reaching out. Have you made sure that you have created the correct APS application? When acquiring a token in an embedded view the APS app you use needs to be the one called "Desktop, Mobile, Single-Page App"(see image below), which is the only one supporting the OAuth PKCE flow.
When I use a Traditional Web App in my extension I get the same error as you, but it works fine when I use the PKCE app.
Hopefully that helps, and let me know if you face any more issues!
Martin from Autodesk Forma
Martin Nordby JohansenSoftware engineer at Autodesk Forma