Skip to content

Commit

Permalink
fix: more email type (storacha#494)
Browse files Browse the repository at this point in the history
Needed more...
  • Loading branch information
Alan Shaw authored Mar 30, 2023
1 parent 7cc6f30 commit 1c0db4f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ export function KeyringProvider ({
return agent
}

const authorize = async (email: '{string}@{string}'): Promise<void> => {
const authorize = async (email: `${string}@${string}`): Promise<void> => {
const agent = await getAgent()
const controller = new AbortController()
setRegisterAbortController(controller)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ export const KeyringProvider: ParentComponent<KeyringProviderProps> = (
return a
}

const authorize = async (email: '{string}@{string}'): Promise<void> => {
const authorize = async (email: `${string}@${string}`): Promise<void> => {
const agent = await getAgent()
const controller = new AbortController()
setRegisterAbortController(controller)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ export const KeyringProvider = defineComponent<KeyringProviderProps>({
}

provide(KeyringProviderInjectionKey.authorize,
async (email: '{string}@{string}'): Promise<void> => {
async (email: `${string}@${string}`): Promise<void> => {
const agent = await getAgent()
const controller = new AbortController()
registerAbortController = controller
Expand Down

0 comments on commit 1c0db4f

Please sign in to comment.