Skip to content

Commit

Permalink
refactor: (#301) 함수 명 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
khcho0125 committed Jan 23, 2023
1 parent 63aaf2e commit 083882c
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ data class AuthCode(

fun issue(email: String) = AuthCode(
key = email,
code = Code.defaultValue(),
code = Code.generate(),
expirationTime = EXPIRED
)
}
Expand All @@ -61,6 +61,6 @@ value class Code private constructor(
companion object {
fun of(value: String) = Code(value)

fun defaultValue() = Code(RandomString(6).nextString())
fun generate() = Code(RandomString(6).nextString())
}
}

0 comments on commit 083882c

Please sign in to comment.