# Login on Safari

**URL:** <https://community.auth0.com/t/login-on-safari/104273>\
**Category:** Get Help\
**Tags:** apis, application\
**Created:** [April 6, 2023, 9:21pm UTC](https://community.auth0.com/t/login-on-safari/104273 "2023-04-06T21:21:54Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![nick74](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/nick74/32/46140_2.png) [@nick74](https://community.auth0.com/u/nick74)\
**Post date:** [April 6, 2023, 9:21pm UTC](https://community.auth0.com/t/login-on-safari/104273/1 "2023-04-06T21:21:54Z")

</div>

Hey 👋

I have implemented Auth0 like this.  
This setup works on Chrome but on Safari/Firefox it constantly logs me out.

Any of you have seen it before?

(here’s my Next.js code snippet)

```auto
export default function App({ Component, pageProps, auth }) {
  if (typeof window === 'undefined') {
    return <></>
}

  return (
        <Auth0Provider
          domain={auth.domain}
          clientId={auth.clientId}
          redirectUri={window.location.origin}
          audience={auth.audience}
          scope="read:current_user"
        >
          <Component {...pageProps} />
        </Auth0Provider>
  )
}

App.getInitialProps = async () => {
  const clientId = process.env.AUTH0_CLIENT_ID
  const domain = process.env.AUTH0_DOMAIN
  const audience = `https://${domain}/api/v2/`

  return {
    auth: {
      clientId,
      domain,
      audience,
    },
  }
}

```

---

<div class="post-metadata">

**Author:** ![dan.woda](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dan.woda/32/18340_2.png) [@dan.woda](https://community.auth0.com/u/dan.woda)\
**Post date:** [April 10, 2023, 6:50pm UTC](https://community.auth0.com/t/login-on-safari/104273/3 "2023-04-10T18:50:40Z")

</div>

Hi @nick74,

Welcome to the Auth0 Community!

What package and version are you using? It looks like you implementation is quite a bit different then our [Next Quickstart](https://auth0.com/docs/quickstart/webapp/nextjs/01-login).

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [June 16, 2023, 1:19pm UTC](https://community.auth0.com/t/login-on-safari/104273/4 "2023-06-16T13:19:39Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
