Skip to content

Commit

Permalink
fix: export getSession [skip release]
Browse files Browse the repository at this point in the history
somehow the default export does not work in the dev app
  • Loading branch information
balazsorban44 committed Feb 1, 2021
1 parent 2865b8c commit cff9d3e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/client/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ const setOptions = ({
}

// Universal method (client + server)
const getSession = async ({ req, ctx, triggerEvent = true } = {}) => {
export const getSession = async ({ req, ctx, triggerEvent = true } = {}) => {
// If passed 'appContext' via getInitialProps() in _app.js then get the req
// object from ctx and use that for the req value to allow getSession() to
// work seemlessly in getInitialProps() on server side pages *and* in _app.js.
Expand Down

0 comments on commit cff9d3e

Please sign in to comment.