Skip to content

Commit d2ddcc3

Browse files
committed
Added Desktop.Auth.set_key
1 parent 80d316f commit d2ddcc3

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

lib/desktop/auth.ex

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@ defmodule Desktop.Auth do
2323
end
2424
end
2525

26+
def set_key(key) do
27+
:persistent_term.put({__MODULE__, :key}, Base.decode32!(key))
28+
end
29+
2630
def login_key() do
2731
Base.encode32(key(), padding: false)
2832
end

0 commit comments

Comments
 (0)