aboutsummaryrefslogtreecommitdiff
path: root/lib/auth.ml
blob: 509f2d11355fc12e948ea0badeeb0306b98ca19a (plain) (blame)
1
2
3
4
5
6
7
8
open Lwt.Syntax

type auth_mechanism = PLAIN  [@@deriving show]

let authenticate (stream, _push) =
  let+ features = Lwt_stream.get stream
  in Option.get features