-
Couldn't load subscription status.
- Fork 11
Closed
Description
It seems that the Nanoid generate functions are not picking up the values set in config.exs.
I currently have this is my config/config.exs inside a phoenix project
config :nanoid,
size: 21,
alphabet: "0123456789abcdef"When I open the shell iex -S mix I get the following
iex(1)> Application.get_env(:nanoid, :size)
21
iex(2)> Application.get_env(:nanoid, :alphabet)
"0123456789abcdef"
iex(3)> Nanoid.Secure.generate()
"yXR2LbmKTzohOefJ5ocCh"
iex(4)> Nanoid.NonSecure.generate()
"obxlccY4icVuAQO2l5vy_"This shows that the correct configuration is loaded into the iex but it is not being picked up correctly by the module.
Metadata
Metadata
Assignees
Labels
No labels