GithubHelp home page GithubHelp logo

Comments (2)

j4w8n avatar j4w8n commented on September 27, 2024

Can you provide a repro of this? My custom data shows up in both data.user and data.session.user. I'm using supabase-js 2.43.1, but based on release notes I'd think that has nothing to do with it.

const { data, error } = await supabase.auth.signInAnonymously({
  options: {
    data: {
      email: 'stuff',
      handle: 'the'
    }
  }
})
data.user {
  id: 'd40fe803-0e0d-4714-8f9f-7d6035b18e17',
  aud: 'authenticated',
  role: 'authenticated',
  email: '',
  phone: '',
  last_sign_in_at: '2024-05-20T20:04:15.633767296Z',
  app_metadata: {},
  user_metadata: { email: 'stuff', handle: 'the' },
  identities: [],
  created_at: '2024-05-20T20:04:15.628343Z',
  updated_at: '2024-05-20T20:04:15.637134Z',
  is_anonymous: true
}

data.session.user {
  id: 'd40fe803-0e0d-4714-8f9f-7d6035b18e17',
  aud: 'authenticated',
  role: 'authenticated',
  email: '',
  phone: '',
  last_sign_in_at: '2024-05-20T20:04:15.633767296Z',
  app_metadata: {},
  user_metadata: { email: 'stuff', handle: 'the' },
  identities: [],
  created_at: '2024-05-20T20:04:15.628343Z',
  updated_at: '2024-05-20T20:04:15.637134Z',
  is_anonymous: true
}

from supabase.

housewithbricks avatar housewithbricks commented on September 27, 2024

Thanks for your help @j4w8n! The ticket can be closed now. It seems like the metadata was not picking up when being passed into sign in, but when I tried static data similar to your example it worked.

from supabase.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.