feat(auth): Revamp authentication setup (#7387)
* chore: Clean up authentication middlewares * chore: Rename AuthUser to AuthIdentity * feat: Define link between user, customer, and auth identity * feat: Use links for auth, update auth context content * fix: Adjust user create command with new auth setup * fix: Make auth login more dynamic, review fixes * fix: Change test assertions for created by
This commit is contained in:
@@ -48,7 +48,6 @@ export * from "./rules"
|
||||
export * from "./selector-constraints-to-string"
|
||||
export * from "./set-metadata"
|
||||
export * from "./simple-hash"
|
||||
export * from "./string-or-regex-equals"
|
||||
export * from "./string-to-select-relation-object"
|
||||
export * from "./stringify-circular"
|
||||
export * from "./to-camel-case"
|
||||
|
||||
@@ -1,9 +0,0 @@
|
||||
export const stringEqualsOrRegexMatch = (
|
||||
stringOrRegex: string | RegExp,
|
||||
testString: string
|
||||
) => {
|
||||
if (stringOrRegex instanceof RegExp) {
|
||||
return stringOrRegex.test(testString)
|
||||
}
|
||||
return stringOrRegex === testString
|
||||
}
|
||||
Reference in New Issue
Block a user