smpallen99/coherence

plug Coherence.Authentication.Token isn't the same as Coherence.user_token(@conn)

Open

#297 opened on Oct 20, 2017

View on GitHub
 (1 comment) (0 reactions) (0 assignees)Elixir (1,259 stars) (220 forks)batch import
help wanted

Description

Correct me if I'm wrong, but these are two different things. You can't take a token from Coherence.user_token function and send it in header to Coherence.Authentication.Token plug, because they have different storage.

The best way is to marry them, the ok way is to describe this case in README. It took about an hour of digging in source codes to figure out this.

Contributor guide