Feat(auth): Rename authentication to auth (#6229)

**What**
- rename `authenticationModule` -> `authModule`
This commit is contained in:
Philip Korsholm
2024-01-29 10:19:30 +00:00
committed by GitHub
parent a41aad4bea
commit 512b041929
70 changed files with 245 additions and 147 deletions
@@ -0,0 +1,22 @@
export type AuthenticationResponse = {
success: boolean
authUser?: any
error?: string
location?: string
}
export type AuthModuleProviderConfig = {
name: string
scopes: Record<string, AuthProviderScope>
}
export type AuthProviderScope = { domain?: string } & Record<string, string>
export type AuthenticationInput = {
connection: { encrypted: boolean }
url: string
headers: Record<string, string>
query: Record<string, string>
body: Record<string, string>
scope: string
}
@@ -15,7 +15,7 @@ import { Context } from "../shared-context"
import { FindConfig } from "../common"
import { IModuleService } from "../modules-sdk"
export interface IAuthenticationModuleService extends IModuleService {
export interface IAuthModuleService extends IModuleService {
authenticate(
provider: string,
providerData: AuthenticationInput
+1 -1
View File
@@ -1,4 +1,4 @@
export * as AuthenticationTypes from "./authentication"
export * as AuthTypes from "./auth"
export * as CacheTypes from "./cache"
export * as CartTypes from "./cart"
export * as CommonTypes from "./common"
+1 -1
View File
@@ -1,5 +1,5 @@
export * from "./address"
export * from "./authentication"
export * from "./auth"
export * from "./bundles"
export * from "./cache"
export * from "./cart"