Skip to content

Commit

Permalink
Chore: create workflow directory for user on registration
Browse files Browse the repository at this point in the history
  • Loading branch information
avivash committed Nov 14, 2023
1 parent c2525e9 commit b793a63
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/lib/auth/account.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import * as uint8arrays from 'uint8arrays'
import { sha256 } from '@oddjs/odd/components/crypto/implementation/browser'
import { publicKeyToDid } from '@oddjs/odd/did/transformers'
import * as odd from '@oddjs/odd'
import type { Crypto } from '@oddjs/odd'
import type FileSystem from '@oddjs/odd/fs/index'
import { get as getStore } from 'svelte/store'
Expand Down Expand Up @@ -94,6 +95,8 @@ export const register = async (hashedUsername: string): Promise<boolean> => {
* @param fs FileSystem
*/
const initializeFilesystem = async (fs: FileSystem): Promise<void> => {
const WORKFLOWS_DIR = odd.path.directory('private', 'workflows')
await fs.mkdir(WORKFLOWS_DIR)
await fs.mkdir(ACCOUNT_SETTINGS_DIR)
}

Expand Down

0 comments on commit b793a63

Please sign in to comment.