Hey @sunidhiligade21,
Only JWT Apps work with the Web SDK.
You can see my note here about using OAuth with the Web SDK:
Thanks, Tommy