Skip to content

Commit

Permalink
update examples
Browse files Browse the repository at this point in the history
  • Loading branch information
piotrski committed Feb 20, 2021
1 parent c6b3f2b commit c11ac06
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions examples/auth/blitz.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ module.exports = withBundleAnalyzer({
middleware: [
sessionMiddleware({
isAuthorized: simpleRolesIsAuthorized,
cookiePrefix: "blitz-auth-example",
// sessionExpiryMinutes: 4,
}),
],
Expand Down
1 change: 1 addition & 0 deletions examples/custom-server/blitz.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ module.exports = {
middleware: [
sessionMiddleware({
isAuthorized: simpleRolesIsAuthorized,
cookiePrefix: "blitz-custom-server-example",
}),
],
/* Uncomment this to customize the webpack config
Expand Down
1 change: 1 addition & 0 deletions examples/fauna/blitz.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ module.exports = {
middleware: [
sessionMiddleware({
isAuthorized: simpleRolesIsAuthorized,
cookiePrefix: "blitz-fauna-example",
getSession: async (handle) => {
const { findSessionByHandle: session } = await graphQLClient.request(
gql`
Expand Down

0 comments on commit c11ac06

Please sign in to comment.