getFlowState retrieves the FlowState object from the context
(ctx context.Context)
| 147 | |
| 148 | // getFlowState retrieves the FlowState object from the context |
| 149 | func getFlowState(ctx context.Context) *models.FlowState { |
| 150 | obj := ctx.Value(flowStateContextKey) |
| 151 | if obj == nil { |
| 152 | return nil |
| 153 | } |
| 154 | return obj.(*models.FlowState) |
| 155 | } |
| 156 | |
| 157 | func getInviteToken(ctx context.Context) string { |
| 158 | obj := ctx.Value(inviteTokenKey) |
no test coverage detected