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

Get Session object has image property instead of img as in docs #11246

Closed
navjeevan-alone opened this issue Jun 24, 2024 · 0 comments · Fixed by #11251
Closed

Get Session object has image property instead of img as in docs #11246

navjeevan-alone opened this issue Jun 24, 2024 · 0 comments · Fixed by #11251
Labels
documentation Relates to documentation triage Unseen or unconfirmed by a maintainer yet. Provide extra information in the meantime.

Comments

@navjeevan-alone
Copy link

What is the improvement or update you wish to see?

from Get Session docs
URL : https://authjs.dev/getting-started/session-management/get-session

import { auth } from "../auth"
 
export default async function UserAvatar() {
  const session = await auth()
 
  if (!session.user) return null
 
  return (
    <div>
      <img src={session.user.img} alt="User Avatar" /> 
// this should be as 
//       <img src={session.user.image} alt="User Avatar" /> 
// user don't have img property , it has image 
    </div>
  )
}

Is there any context that might help us understand?

In Get Session Docs page
it has shown to get session object and display image within object
but the object has image property instead of img per docs

Does the docs page already exist? Please link to it.

https://authjs.dev/getting-started/session-management/get-session

@navjeevan-alone navjeevan-alone added documentation Relates to documentation triage Unseen or unconfirmed by a maintainer yet. Provide extra information in the meantime. labels Jun 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Relates to documentation triage Unseen or unconfirmed by a maintainer yet. Provide extra information in the meantime.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant