auth.onAuthStateChange()

每次发生认证事件时都会收到通知。

supabase.auth.onAuthStateChange((event, session) => {
  console.log(event, session)
})

Parameters

  • callback required object

    No description provided.

Examples

监听认证变化

supabase.auth.onAuthStateChange((event, session) => {
  console.log(event, session)
})

results matching ""

    No results matching ""