Skip to content

Instantly share code, notes, and snippets.

View tbanys's full-sized avatar
🏠
Working from home

Tautvydas Banys tbanys

🏠
Working from home
View GitHub Profile
@tbanys
tbanys / custom-sessions.js
Created August 10, 2022 19:48 — forked from codingphasedotcom/custom-sessions.js
Shopify APP CLI MYSQL Prisma Custom Session Storage
import { PrismaClient } from '@prisma/client';
import Shopify from '@shopify/shopify-api';
import { Session } from '@shopify/shopify-api/dist/auth/session';
const prisma = new PrismaClient();
module.exports.storeCallback = async function storeCallback(session){
console.log('Running storeCallback')
const payload = { ...session }
// Place your key bindings in this file to override the defaults
[
{
"key": "cmd+1",
"command": "workbench.action.openEditorAtIndex1"
},
{
"key": "ctrl+1",
"command": "-workbench.action.openEditorAtIndex1"
},
code --install-extension alefragnani.project-manager
code --install-extension dbaeumer.vscode-eslint
code --install-extension dsznajder.es7-react-js-snippets
code --install-extension esbenp.prettier-vscode
code --install-extension GitHub.github-vscode-theme
code --install-extension octref.vetur
code --install-extension patbenatar.advanced-new-file
code --install-extension ritwickdey.LiveServer
code --install-extension sleistner.vscode-fileutils
code --install-extension xabikos.JavaScriptSnippets