-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Rename TokenRepository to IdentityRepository
BREAKING CHANGE: TokenRepository is now IdentityRepository. The DDB table token DDB table is now identity
- Loading branch information
1 parent
12fd3ea
commit 347edcd
Showing
10 changed files
with
109 additions
and
104 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
import * as arc from "@architect/functions" | ||
import userRepositoryFactory from "@architect/shared/architect/oauth/repository/UserRepository" | ||
import tokenRepositoryFactory from "@architect/shared/architect/oauth/repository/TokenRepository" | ||
import identityRepositoryFactory from "@architect/shared/architect/oauth/repository/IdentityRepository" | ||
import meHandlerFactory from "@architect/shared/architect/oauth/handlers/me" | ||
|
||
const handlerImp = meHandlerFactory( | ||
userRepositoryFactory(), | ||
tokenRepositoryFactory() | ||
identityRepositoryFactory() | ||
) | ||
export const handler = arc.http.async(handlerImp) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
import oAuthRedirectHandlerFactory from "@architect/shared/architect/oauth/handlers/redirect" | ||
import tokenRepositoryFactory from "@architect/shared/architect/oauth/repository/TokenRepository" | ||
import identityRepositoryFactory from "@architect/shared/architect/oauth/repository/IdentityRepository" | ||
import userRepositoryFactory from "@architect/shared/architect/oauth/repository/UserRepository" | ||
import { fetchJson } from "@architect/shared/fetch" | ||
|
||
const impl = oAuthRedirectHandlerFactory( | ||
fetchJson, | ||
userRepositoryFactory(), | ||
tokenRepositoryFactory() | ||
identityRepositoryFactory() | ||
) | ||
|
||
export const handler = impl |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
import oAuthRedirectHandlerFactory from "@architect/shared/architect/oauth/handlers/redirect" | ||
import tokenRepositoryFactory from "@architect/shared/architect/oauth/repository/TokenRepository" | ||
import identityRepositoryFactory from "@architect/shared/architect/oauth/repository/IdentityRepository" | ||
import userRepositoryFactory from "@architect/shared/architect/oauth/repository/UserRepository" | ||
import { fetchJson } from "@architect/shared/fetch" | ||
|
||
const impl = oAuthRedirectHandlerFactory( | ||
fetchJson, | ||
userRepositoryFactory(), | ||
tokenRepositoryFactory() | ||
identityRepositoryFactory() | ||
) | ||
|
||
export const handler = impl |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.