feat(mobile): ios oauth & magic-link login (#8581)

Co-authored-by: EYHN <cneyhn@gmail.com>
This commit is contained in:
Cats Juice
2024-10-28 14:12:33 +08:00
committed by GitHub
parent d6ec4cc597
commit 06dda70319
59 changed files with 929 additions and 219 deletions
@@ -23,7 +23,7 @@ export function useService<T extends Service>(
): T {
const stack = useContext(FrameworkStackContext);
let service: T | null = null;
let service: T | undefined = undefined;
for (let i = stack.length - 1; i >= 0; i--) {
service = stack[i].getOptional(identifier, {
@@ -87,10 +87,10 @@ export function useServices<
export function useServiceOptional<T extends Service>(
identifier: Type<T>
): T | null {
): T | undefined {
const stack = useContext(FrameworkStackContext);
let service: T | null = null;
let service: T | undefined = undefined;
for (let i = stack.length - 1; i >= 0; i--) {
service = stack[i].getOptional(identifier, {