peburrows / goth

Elixir package for Oauth authentication via Google Cloud APIs
http://hexdocs.pm/goth
MIT License
284 stars 108 forks source link

TokenStore - Define init/1 required by behaviour GenServer #36

Closed nitinstp23 closed 6 years ago

nitinstp23 commented 6 years ago

Fix for this warning message -

warning: function init/1 required by behaviour GenServer is not implemented (in module Goth.TokenStore).

We will inject a default implementation for now:

    def init(args) do
      {:ok, args}
    end

But you want to define your own implementation that converts the arguments given to GenServer.start_link/3 to the server state
nitinstp23 commented 6 years ago

Fix #37