Provide type def for AuthClass returned from withSSRContext #9968
Labels
bug
Something isn't working
SSR
Issues related to Server Side Rendering
TypeScript
Related to TypeScript issues
Before opening, please confirm:
JavaScript Framework
Next.js
Amplify APIs
Authentication
Amplify Categories
auth
Environment information
Describe the bug
When I use the
withSSRContext
function I don't get any type definitions from theAuthClass
object returned, so I don't know which methods to call when using theAuth
module.When I tried to inspect the type def of withSSRContext this is what I get:
Expected behavior
The method
withSSRContext
should return an object with type definitions for most modules/classes.Reproduction steps
Code Snippet
Log output
aws-exports.js
No response
Manual configuration
No response
Additional configuration
No response
Mobile Device
No response
Mobile Operating System
No response
Mobile Browser
No response
Mobile Browser Version
No response
Additional information and screenshots
No response
The text was updated successfully, but these errors were encountered: