WithPostAuthHook registers a hook to be called after auth record creation.
(hook auth.PostAuthHook)
| 148 | |
| 149 | // WithPostAuthHook registers a hook to be called after auth record creation. |
| 150 | func WithPostAuthHook(hook auth.PostAuthHook) ServerOption { |
| 151 | return func(cfg *serverOptionConfig) { |
| 152 | cfg.postAuthHook = hook |
| 153 | } |
| 154 | } |
| 155 | |
| 156 | // WithPostAuthPersistHook registers a hook to be called after auth persistence. |
| 157 | func WithPostAuthPersistHook(hook auth.PostAuthHook) ServerOption { |